The ngModel directive updates the form control with special Angular CSS classes to reflect it’s state. Let’s find the list of classes in a tabular format:
|Form control state||If true||If false|
|Value has changed||ng-dirty||ng-pristine|
|Value is valid||ng-valid||ng-invalid|
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.