This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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
Description
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.