This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

NgModuleFactory

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

Properties

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

Methods

abstract create(parentInjector: Injector | null): NgModuleRef<T>
      
      abstract create(parentInjector: Injector | null): NgModuleRef<T>
    

Parameters

parentInjector

Type: Injector | null.

Returns

NgModuleRef<T>