Gets the injector to use when creating a child menu.
()
| 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 | } |