The
ng-dirty class tells you that the form has been modified by the user, whereas the ng-pristineclass tells you that the form has not been modified by the user. So ng-dirty and ng-pristine are two sides of the same story.
The classes are set on any field, while the form has two properties,
$dirty and $pristine.
No comments:
Post a Comment