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

Function _getChildMenuInjector

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

Gets the injector to use when creating a child menu.

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected