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