What are the state CSS classes provided by ngModel?
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 |
---|---|---|
Visited | ng-touched | ng-untouched |
Value has changed | ng-dirty | ng-pristine |
Value is valid | ng-valid | ng-invalid |
May 05, 2022
245
Read more
What is Angular Framework?
November 04, 2022
AngularWhat is a Angular module?
November 03, 2022
AngularWhat are the steps to use animation module?
October 31, 2022
Angular