NgModuleRef
Represents an instance of an NgModule created via a NgModuleFactory
.
abstract class NgModuleRef<T> {
abstract injector: Injector
abstract componentFactoryResolver: ComponentFactoryResolver
abstract instance: T
abstract destroy(): void
abstract onDestroy(callback: () => void): void
}
说明
NgModuleRef
provides access to the NgModule Instance as well other objects related to this 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. |