AngularJS – difference between pristine/dirty and touched/untouched

AngularJS Developer Guide – Forms lists many styles and directives regarding forms and fields. For each one, a CSS class:

ng-valid
ng-invalid
ng-pristine
ng-dirty
ng-touched
ng-untouched

What’s the difference between pristine/dirty, and touched/untouched?

5 Answers
5

Leave a Comment