Validation state describes whether form data satisfies its validation rules and whether the user has interacted with the field. Angular updates this state automatically as input changes or focus moves. section 13.4.2
Angular exposes validation state through paired classes and validation-object properties:
- The same classes appear on the form, summarizing the validation status of its elements. section 13.4.2
Delay feedback until editing
Apply input.ng-dirty.ng-invalid for a red border and input.ng-dirty.ng-valid for a green border. This avoids changing the appearance before the user edits the field. section 13.4.2
