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

Function getComponentDef

packages/core/testing/src/test_bed_compiler.ts:1168–1170  ·  view source on GitHub ↗
(value: Type<unknown>)

Source from the content-addressed store, hash-verified

1166function getComponentDef(value: ComponentType<unknown>): ComponentDef<unknown>;
1167function getComponentDef(value: Type<unknown>): ComponentDef<unknown> | null;
1168function getComponentDef(value: Type<unknown>): ComponentDef<unknown> | null {
1169 return (value as any).ɵcmp ?? null;
1170}
1171
1172function hasNgModuleDef<T>(value: Type<T>): value is NgModuleType<T> {
1173 return value.hasOwnProperty('ɵmod');

Callers 6

compileTypesSyncMethod · 0.70
applyTransitiveScopesMethod · 0.70
isStandaloneComponentFunction · 0.70
createComponentMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…