MCPcopy Create free account
hub / github.com/angular/angular / loadQueryInternal

Function loadQueryInternal

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

Source from the content-addressed store, hash-verified

463}
464
465export function loadQueryInternal<T>(lView: LView, queryIndex: number): QueryList<T> {
466 ngDevMode &&
467 assertDefined(lView[QUERIES], 'LQueries should be defined when trying to load a query');
468 ngDevMode && assertIndexInRange(lView[QUERIES]!.queries, queryIndex);
469 return lView[QUERIES]!.queries[queryIndex].queryList;
470}
471
472/**
473 * 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