i\'m trying to do a form with validations using angularjs and so far i did a good job. But when i commit my reset button all the fields reset except for the error messages i
To me using $setPristine to reset the form is a hack. The real solution is to keep it like it should be:
$setPristine
then in angular:
var original = angular.copy($scope.user); $scope.reset = function() { $scope.user = angular.copy(original); };
and that's it.