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