This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Proposal: .ng-prefilled class helper #10050
Closed
Description
This would be handy in the following use case:
You want to show validation messages either
- after the form is submitted
- on field touch, provided the field has already a value. In this case I'd like the user to notice the validity of the new value right after touch -- instead of waiting until form submission.
So it would work like this (relevant classes mentioned):
- the field is in a untouched state, but has a value:
ng-untouched
ng-pristine
ng-prefilled
- user changes field value:
ng-untouched
ng-dirty
ng-prefilled
- user blurs field:
ng-touched
ng-dirty
ng-prefilled
Does this makes sense to you, guys?