MCPcopy
hub / github.com/angular/angular / setInjectImplementation

Function setInjectImplementation

packages/core/src/di/inject_switch.ts:35–41  ·  view source on GitHub ↗
(
  impl: (<T>(token: ProviderToken<T>, flags?: InternalInjectFlags) => T | null) | undefined,
)

Source from the content-addressed store, hash-verified

33 * Sets the current inject implementation.
34 */
35export function setInjectImplementation(
36 impl: (<T>(token: ProviderToken<T>, flags?: InternalInjectFlags) => T | null) | undefined,
37): (<T>(token: ProviderToken<T>, flags?: InternalInjectFlags) => T | null) | undefined {
38 const previous = _injectImplementation;
39 _injectImplementation = impl;
40 return previous;
41}
42
43/**
44 * Injects `root` tokens in limp mode.

Callers 7

runInInjectionContextFunction · 0.90
runInContextMethod · 0.90
getMethod · 0.90
ɵɵpipeFunction · 0.90
getNodeInjectableFunction · 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…