Issue
I have to reset my form along with validation. is there any method to reset the state of form from ng-dirty to ng-pristine.
Solution
There doesn't seem to be support for that yet. A workaround I have seen is to recreate the form after submit which is obviously cumbersome and ugly.
See also
- https://github.com/angular/angular/issues/6196
- https://github.com/angular/angular/issues/4933
- https://github.com/angular/angular/issues/5568
- https://github.com/angular/angular/issues/4914
Answered By - Günter Zöchbauer
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.