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

Function hasParentInjector

packages/core/src/render3/util/injector_utils.ts:18–20  ·  view source on GitHub ↗
(parentLocation: RelativeInjectorLocation)

Source from the content-addressed store, hash-verified

16
17/// Parent Injector Utils ///////////////////////////////////////////////////////////////
18export function hasParentInjector(parentLocation: RelativeInjectorLocation): boolean {
19 return parentLocation !== NO_PARENT_INJECTOR;
20}
21
22export function getParentInjectorIndex(parentLocation: RelativeInjectorLocation): number {
23 if (ngDevMode) {

Callers 3

parentInjectorMethod · 0.90
getInjectorParentFunction · 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…