createNgModule
function
Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
API
function createNgModule<T>( ngModule: Type<T>, parentInjector?: Injector | undefined): NgModuleRef<T>;
createNgModule
NgModuleRef<T>
Returns a new NgModuleRef instance based on the NgModule class and parent injector provided.
@paramparentInjector
Injector | undefined
Optional injector instance to use as a parent for the module injector. If
not provided, NullInjector
will be used instead.
@returns
NgModuleRef<T>
Jump to details