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

Function executeViewQueryFn

packages/core/src/render3/queries/query_execution.ts:41–54  ·  view source on GitHub ↗
(
  flags: RenderFlags,
  viewQueryFn: ViewQueriesFunction<T>,
  component: T,
)

Source from the content-addressed store, hash-verified

39}
40
41export function executeViewQueryFn<T>(
42 flags: RenderFlags,
43 viewQueryFn: ViewQueriesFunction<T>,
44 component: T,
45): void {
46 ngDevMode && assertDefined(viewQueryFn, 'View queries function to execute must be defined.');
47 setCurrentQueryIndex(0);
48 const prevConsumer = setActiveConsumer(null);
49 try {
50 viewQueryFn(flags, component);
51 } finally {
52 setActiveConsumer(prevConsumer);
53 }
54}
55
56export function executeContentQueries(tView: TView, tNode: TNode, lView: LView) {
57 if (isContentQueryHost(tNode)) {

Callers 2

renderViewFunction · 0.90
refreshViewFunction · 0.90

Calls 3

assertDefinedFunction · 0.90
setCurrentQueryIndexFunction · 0.90
setActiveConsumerFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…