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

Function getComponentDef

packages/core/src/render3/def_getters.ts:39–42  ·  view source on GitHub ↗
(type: any)

Source from the content-addressed store, hash-verified

37 */
38
39export function getComponentDef<T>(type: any): ComponentDef<T> | null {
40 assertTypeDefined(type, '@Component');
41 return type[NG_COMP_DEF] || null;
42}
43
44export function getDirectiveDefOrThrow<T>(type: any): DirectiveDef<T> | never {
45 const def = getDirectiveDef<T>(type);

Callers 15

clearDirectiveDefsFunction · 0.90
walkProviderTreeFunction · 0.90
createComponentMethod · 0.90
bootstrapImplMethod · 0.90
assertComponentTypeFunction · 0.90
ɵɵreplaceMetadataFunction · 0.90
extractDirectiveDefFunction · 0.90
createComponentFunction · 0.90
reflectComponentTypeFunction · 0.90
assertComponentDefFunction · 0.90

Calls 1

assertTypeDefinedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…