NgControlStatus
Directive automatically applied to Angular form controls that sets CSS classes based on control status.
NgModules
选择器
[formControlName]
[ngModel]
[formControl]
说明
CSS classes applied
The following classes are applied as the properties become true:
- ng-valid
- ng-invalid
- ng-pending
- ng-pristine
- ng-dirty
- ng-untouched
- ng-touched