-
Notifications
You must be signed in to change notification settings - Fork 27.4k
feat(formController): add $setUntouched to propagate untouched state #9050
Conversation
Do you have a usecase for this? |
Yes, it is described in the comments of #583 (comment) |
02dc2aa
to
fd2d6c0
Compare
apparently I'm the "person" for this PR, despite not being the assignee! So I guess I'll take a look at this one |
If that's the use case, is there a reason this use case is not implemented in this PR? I'm not really wild about adding yet another method to the form/ngModel controllers, because there are already so many of them. Why not just make it a side effect of $setPristine() to also unset the $touched flag of each control? |
It's fine with me to do this in setPristine. I can update this pr if you
|
It's probably not a good idea to rename things that are already exposed ---- another opinion on this would be good, but personally I'm not keen on adding yet another one, especially if its usage is supposed to be tied to setPristine |
I agree with you that it makes sense to unset the |
Let's leave the PR as it is: |
Ok, LGTM. |
checks if any other issues have been filed about that |
Yeah, I think it's time to close #583 :)
|
No description provided.