MCPcopy
hub / github.com/angular/angular / ɵɵinject

Function ɵɵinject

packages/core/src/di/injector_compatibility.ts:140–148  ·  view source on GitHub ↗
(
  token: ProviderToken<T> | HostAttributeToken,
  flags = InternalInjectFlags.Default,
)

Source from the content-addressed store, hash-verified

138 flags?: InternalInjectFlags,
139): string | null;
140export function ɵɵinject<T>(
141 token: ProviderToken<T> | HostAttributeToken,
142 flags = InternalInjectFlags.Default,
143): T | null {
144 return (getInjectImplementation() || injectInjectorOnly)(
145 resolveForwardRef(token as Type<T>),
146 flags,
147 );
148}
149
150/**
151 * Throws an error indicating that a factory function could not be generated by the compiler for a

Callers 15

CircularAClass · 0.90
CircularBClass · 0.90
ServiceWithDepClass · 0.90
ServiceWithMultiDepClass · 0.90
DeepModuleClass · 0.90
InjectorWithDepClass · 0.90
GreeterInjClass · 0.90
jit_spec.tsFile · 0.90
ParentPipeClass · 0.90

Calls 2

getInjectImplementationFunction · 0.90
resolveForwardRefFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…