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

Function viewChildRequiredFn

packages/core/src/authoring/queries.ts:26–32  ·  view source on GitHub ↗
(
  locator: ProviderToken<LocatorT> | string,
  opts?: {read?: ProviderToken<ReadT>; debugName?: string},
)

Source from the content-addressed store, hash-verified

24}
25
26function viewChildRequiredFn<LocatorT, ReadT>(
27 locator: ProviderToken<LocatorT> | string,
28 opts?: {read?: ProviderToken<ReadT>; debugName?: string},
29): Signal<ReadT> {
30 ngDevMode && assertInInjectionContext(viewChild);
31 return createSingleResultRequiredQuerySignalFn<ReadT>(opts);
32}
33
34/**
35 * Type of the `viewChild` function. The viewChild function creates a singular view query.

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…