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

Function viewChildFn

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

Source from the content-addressed store, hash-verified

16import {Signal} from '../render3/reactivity/api';
17
18function viewChildFn<LocatorT, ReadT>(
19 locator: ProviderToken<LocatorT> | string,
20 opts?: {read?: ProviderToken<ReadT>; debugName?: string},
21): Signal<ReadT | undefined> {
22 ngDevMode && assertInInjectionContext(viewChild);
23 return createSingleResultOptionalQuerySignalFn<ReadT>(opts);
24}
25
26function viewChildRequiredFn<LocatorT, ReadT>(
27 locator: ProviderToken<LocatorT> | string,

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…