MCPcopy Create free account
hub / github.com/angular/components / _getChildMenuInjector

Function _getChildMenuInjector

src/cdk/menu/menu-trigger-base.ts:192–203  ·  view source on GitHub ↗

Gets the injector to use when creating a child menu.

()

Source from the content-addressed store, hash-verified

190
191 /** Gets the injector to use when creating a child menu. */
192 private _getChildMenuInjector() {
193 this._childMenuInjector =
194 this._childMenuInjector ||
195 Injector.create({
196 providers: [
197 {provide: MENU_TRIGGER, useValue: this},
198 {provide: MENU_STACK, useValue: this.menuStack},
199 ],
200 parent: this.injector,
201 });
202 return this._childMenuInjector;
203 }
204}

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected