feat(forms): introduce initialValue to AbstractControl - #20214
Conversation
47b0759 to
a6ed9a2
Compare
benedikt-roth
left a comment
There was a problem hiding this comment.
Good job, @Toxicable! Just small remarks.
There was a problem hiding this comment.
Nitpicking: one empty line too much.
There was a problem hiding this comment.
original is quite a generic name. I believe e.g. originalValue would be more explicit.
Since it is a public attribute, naming matters.
There was a problem hiding this comment.
"should" - same applies for the tests cases below.
There was a problem hiding this comment.
"should" - same applies for the tests cases below.
There was a problem hiding this comment.
"should" - same applies for the tests cases below.
32d8ff6 to
eb62a1e
Compare
eb62a1e to
df964af
Compare
|
I think |
closes angular#19747 adds `initialValue` as a readonly property on `AbstractControl` which holds the value passed during construction and is never change except on calling `reset`
df964af to
7a35805
Compare
|
Hello? Don't want to hassle you. Sure you're busy. But this PR has some merge conflicts that you probably ought to resolve. |
1 similar comment
|
Hello? Don't want to hassle you. Sure you're busy. But this PR has some merge conflicts that you probably ought to resolve. |
|
Any update ? |
|
We're going to close this PR since it's out of date, but the issue remains open and is still being discussed. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
closes #19747
adds
initialValueas a readonly property onAbstractControlwhich holds the value passed during construction and is never change except on callingresetPR 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?
There is no simple way to save a forms inital/original value/state
Issue Number: #19747
What is the new behavior?
a new property that stores the orginal value
Does this PR introduce a breaking change?