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

Function inputValueFn

packages/core/src/authoring/input/input_signal.ts:127–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 node.transformFn = options?.transform;
126
127 function inputValueFn() {
128 // Record that someone looked at this signal.
129 producerAccessed(node);
130
131 if (node.value === REQUIRED_UNSET_VALUE) {
132 let message: string | null = null;
133 if (ngDevMode) {
134 const name = options?.debugName ?? options?.alias;
135 message = `Input${name ? ` "${name}"` : ''} is required but no value is available yet.`;
136 }
137 throw new RuntimeError(RuntimeErrorCode.REQUIRED_INPUT_NO_VALUE, message);
138 }
139
140 return node.value;
141 }
142
143 (inputValueFn as any)[SIGNAL] = node;
144

Callers 1

createInputSignalFunction · 0.85

Calls 1

producerAccessedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…