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

Function getInjectorDef

packages/core/src/di/interface/defs.ts:253–255  ·  view source on GitHub ↗
(type: any)

Source from the content-addressed store, hash-verified

251 * @param type type which may have an injector def (`ɵinj`)
252 */
253export function getInjectorDef<T>(type: any): ɵɵInjectorDef<T> | null {
254 return type && type.hasOwnProperty(NG_INJ_DEF) ? (type as any)[NG_INJ_DEF] : null;
255}
256
257export const NG_PROV_DEF: string = getClosureSafeProperty({ɵprov: getClosureSafeProperty});
258export const NG_INJ_DEF: string = getClosureSafeProperty({ɵinj: getClosureSafeProperty});

Callers 2

walkProviderTreeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…