最佳答案
What are the differences between ng-pristine
and ng-dirty
? It seems you can have both to be true
:
$scope.myForm.$pristine = true; // after editing the form