MCPcopy Index your code
hub / github.com/angular/angular / getNgModuleById

Function getNgModuleById

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

Source from the content-addressed store, hash-verified

33 * @publicApi
34 */
35export function getNgModuleById<T>(id: string): Type<T> {
36 const type = getRegisteredNgModuleType(id);
37 if (!type) throw noModuleError(id);
38 return type;
39}
40
41function noModuleError(id: string): Error {
42 return new RuntimeError(

Callers 3

test_bed_spec.tsFile · 0.90
jit_spec.tsFile · 0.90

Calls 2

noModuleErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…