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

Function setCurrentInjector

packages/core/primitives/di/src/injector.ts:28–34  ·  view source on GitHub ↗
(
  injector: Injector | null | undefined,
)

Source from the content-addressed store, hash-verified

26}
27
28export function setCurrentInjector(
29 injector: Injector | null | undefined,
30): Injector | undefined | null {
31 const former = _currentInjector;
32 _currentInjector = injector;
33 return former;
34}
35
36export function inject<T>(token: InjectionToken<T> | Constructor<T>): T;
37export function inject<T>(

Callers 6

jit_spec.tsFile · 0.85
runInInjectionContextFunction · 0.85
runInContextMethod · 0.85
getMethod · 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…