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

Function providersResolver

packages/core/src/render3/di_setup.ts:56–65  ·  view source on GitHub ↗
(
  def: DirectiveDef<T>,
  providers: Provider[],
  isViewProviders: boolean,
)

Source from the content-addressed store, hash-verified

54 * @param viewProviders: Array of `viewProviders`.
55 */
56export function providersResolver<T>(
57 def: DirectiveDef<T>,
58 providers: Provider[],
59 isViewProviders: boolean,
60): void {
61 const tView = getTView();
62 if (tView.firstCreatePass) {
63 resolveProvider(providers, tView.data, tView.blueprint, isComponentDef(def), isViewProviders);
64 }
65}
66
67/**
68 * Resolves a provider and publishes it to the DI system.

Callers 2

ɵɵProvidersFeatureFunction · 0.90

Calls 3

getTViewFunction · 0.90
isComponentDefFunction · 0.90
resolveProviderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…