Represents an instance of an NgModule created via a
NgModuleRef provides access to the NgModule Instance as well other objects related to this NgModule Instance.
The injector that contains all of the providers of the NgModule.
The ComponentFactoryResolver to get hold of the ComponentFactories declared in the
entryComponents property of the module.
The NgModule instance.
Destroys the module instance and all of the data structures associated with it.
|abstract destroy(): void|
Allows to register a callback that will be called when the module is destroyed.
|abstract onDestroy(callback: () => void): void|
() => void.