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 stateIf trueIf false
Value has changedng-dirtyng-pristine
Value is validng-validng-invalid

May 05, 2022