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

Function assertInjectImplementationNotEqual

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

Source from the content-addressed store, hash-verified

74 * @param fn Function which it should not equal to
75 */
76export function assertInjectImplementationNotEqual(
77 fn: <T>(token: ProviderToken<T>, flags?: InternalInjectFlags) => T | null,
78) {
79 ngDevMode &&
80 assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');
81}

Callers 1

ɵɵdirectiveInjectFunction · 0.90

Calls 1

assertNotEqualFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…