NgModuleFactory

From Get docs
< @angular/coreAngular/docs/latest/api/core/ngmodulefactory /
Revision as of 02:36, 6 December 2021 by Notes (talk | contribs) (Page commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


NgModuleFactory

class

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>

Parameters
parentInjector Injector
Returns

NgModuleRef<T>



© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/NgModuleFactory