MCPcopy
hub / github.com/angular/angular / getQueryResults

Function getQueryResults

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

Source from the content-addressed store, hash-verified

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

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…