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

Function setRawValue

packages/forms/signals/src/util/parser.ts:52–61  ·  view source on GitHub ↗
(rawValue: TRaw)

Source from the content-addressed store, hash-verified

50 });
51
52 const setRawValue = (rawValue: TRaw) => {
53 const result = parse(rawValue);
54 errors.set(normalizeErrors(result.error));
55 if (result.value !== undefined) {
56 setValue(result.value);
57 }
58 // `errors` is a linked signal sourced from the model value; write parse errors after
59 // model updates so `{value, errors}` results do not get reset by the recomputation.
60 errors.set(normalizeErrors(result.error));
61 };
62
63 const reset = () => {
64 errors.set([]);

Callers

nothing calls this directly

Calls 4

normalizeErrorsFunction · 0.90
setValueFunction · 0.85
setMethod · 0.65
parseFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…