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

Function loadQueryInternal

packages/core/src/render3/queries/query.ts:461–466  ·  view source on GitHub ↗
(lView: LView, queryIndex: number)

Source from the content-addressed store, hash-verified

459}
460
461export function loadQueryInternal<T>(lView: LView, queryIndex: number): QueryList<T> {
462 ngDevMode &&
463 assertDefined(lView[QUERIES], 'LQueries should be defined when trying to load a query');
464 ngDevMode && assertIndexInRange(lView[QUERIES]!.queries, queryIndex);
465 return lView[QUERIES]!.queries[queryIndex].queryList;
466}
467
468/**
469 * Creates a new instance of LQuery and returns its index in the collection of LQuery objects.

Callers 3

bindQueryToSignalFunction · 0.90
refreshSignalQueryFunction · 0.90
ɵɵloadQueryFunction · 0.90

Calls 2

assertDefinedFunction · 0.90
assertIndexInRangeFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…