• Overview
@angular/core

NgModuleFactory

Class
deprecated

Deprecation warning

This class was mostly used as a part of ViewEngine-based JIT API and is no longer needed in Ivy JIT mode. Angular provides APIs that accept NgModule classes directly (such as PlatformRef.bootstrapModule and createNgModule), consider switching to those APIs instead of using factory-based ones.

API

  abstract class NgModuleFactory<T> {}  

moduleType

Type<T>

create

NgModuleRef<T>
@paramparentInjectorInjector | null
@returnsNgModuleRef<T>
Jump to details