docs: use transformedValue in Forms | Custom Controls | Value transformation section - #70208
Open
nsbarsukov wants to merge 2 commits into
Open
docs: use transformedValue in Forms | Custom Controls | Value transformation section#70208nsbarsukov wants to merge 2 commits into
transformedValue in Forms | Custom Controls | Value transformation section#70208nsbarsukov wants to merge 2 commits into
Conversation
…sformation` section
The "Value transformation" section taught readers to hand-roll
transformation with `linkedSignal()` and a manual parse method, even
though `@angular/forms/signals` ships `transformedValue()` for exactly
this case. Readers ended up with a weaker version of a feature the
framework already provides — notably, no parse error reporting.
Rewrite the section around `transformedValue()` and document the parts
the manual pattern could not cover: returning `{error}` from `parse` to
surface parse errors on the field's `errors()`, and `reset()` clearing
them. This also makes good on the cross-reference from the validation
guide, which pointed here for parse error details the section never
covered.
Fixes angular#70206
nsbarsukov
commented
Aug 14, 2026
|
|
||
| A field with parse errors is invalid, which blocks submission the same way a failed validation rule does. | ||
|
|
||
| HELPFUL: Signal Forms uses the same mechanism for native inputs. When the browser cannot parse a value (for example, a partially typed date in `<input type="date">`), it surfaces as a `parse` error on the field. See [Native HTML validation](guide/forms/signals/validation#native-html-validation) for details. |
Contributor
Author
There was a problem hiding this comment.
JeanMeche
reviewed
Aug 14, 2026
JeanMeche
requested review from
JeanMeche and
bencodezen
and removed request for
atscott
August 14, 2026 13:43
Co-authored-by: Matthieu Riegler <kyro38@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: 70206
Fixes #70206
transformedValue#70206The "Value transformation" section taught readers to hand-roll transformation with
linkedSignal()and a manual parse method, even though@angular/forms/signalsshipstransformedValue()for exactly this case. Readers ended up with a weaker version of a feature the framework already provides — notably, no parse error reporting.What is the new behavior?
Rewrite the section around
transformedValue()and document the parts the manual pattern could not cover: returning{error}fromparseto surface parse errors on the field'serrors(), andreset()clearing them. This also makes good on the cross-reference from the validation guide, which pointed here for parse error details the section never covered.Does this PR introduce a breaking change?