I been struggling to reset form once form is submitted. Someone posted this Here which I want to make it work but no success. Here is my My Code Example.
$scop
There is another way to pristine form that is by sending form into the controller. For example:-
In view:-
Name is required. Add User
In Controller:-
$scope.addUser = function(myForm) { myForm.$setPristine(); };