NgModuleRef
Class
stable
Represents an instance of an NgModule created by an NgModuleFactory.
Provides access to the NgModule instance and related objects.
injector
EnvironmentInjectorThe injector that contains all of the providers of the NgModule.
destroy
voidDestroys the module instance and all of the data structures associated with it.
@returns
voidonDestroy
voidRegisters a callback to be executed when the module is destroyed.
@paramcallback
() => void@returns
voidJump to details