var original = $scope.user;
when resetting :
$scope.user= angular.copy(original);
$scope.userForm.$setPristine();
remove
type="reset" in <button>
here is the Angular Documentation for form controllers.
var original = $scope.user;
when resetting :
$scope.user= angular.copy(original);
$scope.userForm.$setPristine();
remove
type="reset" in <button>
here is the Angular Documentation for form controllers.