Help Angular by taking a 1 minute survey!Go to surveyHome

NgModuleFactory

      
      abstract class NgModuleFactory<T> {
  abstract moduleType: Type<T>
  abstract create(parentInjector: Injector): NgModuleRef<T>
}
    

Properties

Property Description
abstract moduleType: Type<T> Read-only.

Methods

abstract create(parentInjector: Injector): NgModuleRef<T>
      
      abstract create(parentInjector: Injector): NgModuleRef<T>
    
Parameters
parentInjector Injector
Returns

NgModuleRef<T>