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

Function getDirectiveDef

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

Source from the content-addressed store, hash-verified

54}
55
56export function getDirectiveDef<T>(type: any): DirectiveDef<T> | null {
57 assertTypeDefined(type, '@Directive');
58 return type[NG_DIR_DEF] || null;
59}
60
61export function getPipeDef<T>(type: any): PipeDef<T> | null {
62 assertTypeDefined(type, '@Pipe');

Callers 15

extractDirectiveDefFunction · 0.90
createRootTViewFunction · 0.90
trackHostDirectiveDefFunction · 0.90
verifyNotStandaloneFunction · 0.90
transitiveScopesForFunction · 0.90
isDirectiveFunction · 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…