menu
menuAPI
Represents an instance of an NgModule created by an NgModuleFactory.
Provides access to the NgModule instance and related objects.
abstract class NgModuleRef<T> { abstract readonly injector: EnvironmentInjector; abstract readonly instance: T; abstract destroy(): void; abstract onDestroy(callback: () => void): void;}
EnvironmentInjectorThe injector that contains all of the providers of the NgModule.
voidDestroys the module instance and all of the data structures associated with it.
voidvoidRegisters a callback to be executed when the module is destroyed.
() => voidvoid