viewChild • Angular
Initializes a view child query. Consider using viewChild.required for queries that should
always match.
@paramopts{ read: ProviderToken<ReadT>; debugName?: string | undefined; }
@returnsSignal<ReadT | undefined>
@paramopts{ debugName?: string | undefined; } | undefined
@returnsSignal<LocatorT | undefined>
@paramopts{ debugName?: string | undefined; } | undefined
@paramopts{ read: ProviderToken<ReadT>; debugName?: string | undefined; }
Usage Notes
Create a child query in your component by declaring a
class field and initializing it with the viewChild() function.