NgModuleFactory

Experimental

Class

Class Overview

class NgModuleFactory {
constructor(_injectorClass: {new (parentInjector: Injector): NgModuleInjector<T>}, _moduleType: Type<T>)

moduleType : Type<T>
create(parentInjector: Injector) : NgModuleRef<T>

}

Class Description

Constructor

constructor(_injectorClass: {new (parentInjector: Injector): NgModuleInjector<T>}, _moduleType: Type<T>)

Class Details

exported from @angular/core/index, defined in @angular/core/src/linker/ng_module_factory.ts