MCPcopy
hub / github.com/angular/angular / getModuleFactory

Function getModuleFactory

packages/core/src/linker/ng_module_factory_loader.ts:23–27  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

21 * @deprecated Use `getNgModuleById` instead.
22 */
23export function getModuleFactory(id: string): NgModuleFactory<any> {
24 const type = getRegisteredNgModuleType(id);
25 if (!type) throw noModuleError(id);
26 return new R3NgModuleFactory(type);
27}
28
29/**
30 * Returns the NgModule class with the given id (specified using [@NgModule.id

Callers 1

Calls 2

noModuleErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…