MCPcopy
hub / github.com/angular/angular / getCurrentInjector

Function getCurrentInjector

packages/core/primitives/di/src/injector.ts:24–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22let _currentInjector: Injector | undefined | null = undefined;
23
24export function getCurrentInjector(): Injector | undefined | null {
25 return _currentInjector;
26}
27
28export function setCurrentInjector(
29 injector: Injector | null | undefined,

Callers 3

injectInjectorOnlyFunction · 0.90
isInInjectionContextFunction · 0.85
injectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…