linkgetModuleFactory
npm Package | @angular/core |
---|---|
Module | import { getModuleFactory } from '@angular/core'; |
Source | core/src/linker/ng_module_factory_loader.ts |
function getModuleFactory(id: string): NgModuleFactory<any>;
linkDescription
Returns the NgModuleFactory with the given id, if it exists and has been loaded.
Factories for modules that do not specify an id
cannot be retrieved. Throws if the module
cannot be found.