I have a form that is submitted via api and can be reused immediately after the completion of the submit request.
For verification styling requirements, I need to remove the css ng-submitted class from <form> , I cannot find an angular way to clear it or reset the form.
I tried:
myForm.$submitted = false;
but this does not remove the ng-submitted class
Is there such a method in angular 1.3?
James source share