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

Function getQueryResults

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

Source from the content-addressed store, hash-verified

553 * @param queryIndex
554 */
555export function getQueryResults<V>(lView: LView, queryIndex: number): V[] {
556 const tView = lView[TVIEW];
557 const tQuery = getTQuery(tView, queryIndex);
558 return tQuery.crossesNgTemplate
559 ? collectQueryResults<V>(tView, lView, queryIndex, [])
560 : materializeViewResults<V>(tView, lView, tQuery, queryIndex);
561}

Callers 2

refreshSignalQueryFunction · 0.90
ɵɵqueryRefreshFunction · 0.90

Calls 3

getTQueryFunction · 0.85
collectQueryResultsFunction · 0.85
materializeViewResultsFunction · 0.85

Tested by

no test coverage detected