()
| 86 | } |
| 87 | |
| 88 | override destroy(): void { |
| 89 | ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed'); |
| 90 | const injector = this._r3Injector; |
| 91 | !injector.destroyed && injector.destroy(); |
| 92 | this.destroyCbs!.forEach((fn) => fn()); |
| 93 | this.destroyCbs = null; |
| 94 | } |
| 95 | override onDestroy(callback: () => void): void { |
| 96 | ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed'); |
| 97 | this.destroyCbs!.push(callback); |
nothing calls this directly
no test coverage detected