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

Function bindQueryToSignal

packages/core/src/render3/queries/query_reactive.ts:103–109  ·  view source on GitHub ↗
(target: Signal<unknown>, queryIndex: number)

Source from the content-addressed store, hash-verified

101}
102
103export function bindQueryToSignal(target: Signal<unknown>, queryIndex: number): void {
104 const node = target[SIGNAL] as QuerySignalNode<unknown>;
105 node._lView = getLView();
106 node._queryIndex = queryIndex;
107 node._queryList = loadQueryInternal(node._lView, queryIndex);
108 node._queryList.onDirty(() => node._dirtyCounter.update((v) => v + 1));
109}
110
111function refreshSignalQuery<V>(node: QuerySignalNode<V>, firstOnly: boolean): V | ReadonlyArray<V> {
112 const lView = node._lView;

Callers 2

ɵɵcontentQuerySignalFunction · 0.90
ɵɵviewQuerySignalFunction · 0.90

Calls 4

getLViewFunction · 0.90
loadQueryInternalFunction · 0.90
onDirtyMethod · 0.80
updateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…