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.

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