(callback: () => void)
| 566 | } |
| 567 | |
| 568 | private removeOnDestroy(callback: () => void): void { |
| 569 | const destroyCBIdx = this._onDestroyHooks.indexOf(callback); |
| 570 | if (destroyCBIdx !== -1) { |
| 571 | this._onDestroyHooks.splice(destroyCBIdx, 1); |
| 572 | } |
| 573 | } |
| 574 | } |
| 575 | |
| 576 | function injectableDefOrInjectorDefFactory(token: ProviderToken<any>): FactoryFn<any> { |