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
The NgModule instance.
Destroys the module instance and all of the data structures associated with it.
Allows to register a callback that will be called when the module is destroyed.