MCPcopy
hub / github.com/angular/angular / getter

Function getter

packages/core/src/authoring/model/model_signal.ts:70–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 node.value = initialValue;
69
70 function getter(): T {
71 producerAccessed(node);
72 assertModelSet(node.value);
73 return node.value;
74 }
75
76 getter[SIGNAL] = node;
77 getter.asReadonly = signalAsReadonlyFn.bind(getter as any) as () => Signal<T>;

Callers 4

createModelSignalFunction · 0.85
computedFunction · 0.85
subscribeToOutputMethod · 0.85

Calls 2

producerAccessedFunction · 0.90
assertModelSetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…