createNgModule
function
stable
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>;Jump to details