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

Method inject

packages/core/testing/src/test_bed.ts:124–124  ·  view source on GitHub ↗
(
    token: ProviderToken<T>,
    notFoundValue: undefined,
    options: InjectOptions & {
      optional?: false;
    },
  )

Source from the content-addressed store, hash-verified

122 compileComponents(): Promise<any>;
123
124 inject<T>(
125 token: ProviderToken<T>,
126 notFoundValue: undefined,
127 options: InjectOptions & {

Callers 15

makeRequestAndExpectOneFunction · 0.65
makeRequestAndExpectNoneFunction · 0.65
hydration_spec.tsFile · 0.65
meta_spec.tsFile · 0.65
title_spec.tsFile · 0.65
makeRendererFunction · 0.65
makeRendererFunction · 0.65
noopAnimationTestsFunction · 0.65
untilStableFunction · 0.65

Implementers 1

TestBedImplpackages/core/testing/src/test_bed.ts

Calls

no outgoing calls

Tested by 15

actAsyncFunction · 0.52
actAsyncFunction · 0.52
actFunction · 0.52
actFunction · 0.52
createSignalFormControlFunction · 0.52
createSignalFormControlFunction · 0.52
optionsFunction · 0.52
checkRedirectFunction · 0.52
recognizeFunction · 0.52
expectPageIndexFunction · 0.52
createNavigationHistoryFunction · 0.52