Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

FormController.$setValidity should be able to reset child validation #13202

Closed
bjoernWahle opened this issue Oct 29, 2015 · 0 comments · Fixed by #16601
Closed

FormController.$setValidity should be able to reset child validation #13202

bjoernWahle opened this issue Oct 29, 2015 · 0 comments · Fixed by #16601

Comments

@bjoernWahle
Copy link

I implemented a behaviour to add my server-side errors to my client-side angular errors. If I want to reset my form ($setPristine() and $setValidity()), only the general validation state of my form is reset.

My workaround for this was, to call $setValidity() for all fields of the form manually.

I think it would be nice to have method or an argument for $setValidity(), that resets child validation state as well.

@Narretz Narretz added this to the Ice Box milestone Nov 13, 2015
Narretz added a commit to Narretz/angular.js that referenced this issue Jun 15, 2018
Narretz added a commit that referenced this issue Jun 18, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Closes #16601
Fixes #14749
Closes #14517
Closes #13202
Narretz added a commit that referenced this issue Jun 18, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Closes #16601
Fixes #14749
Closes #14517
Closes #13202
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants