-
Notifications
You must be signed in to change notification settings - Fork 6
Hiding validation messages for "pristine" fields #2
Comments
I believe this is handled in the library as-written, unless you're suggesting after the submit button is pressed. If that is the case, I'd recommend currently to use a data-val-if to test if the model is different from your default value. If I'm wrong, or you have a suggestion for providing the default pristine value, could you provide a gist? Thanks! |
I mean that we don't want the messages to appear just because the user has Currently the messages appear when the field is touched and invalid. We want it to be when dirty and invalid instead. Can this be done through configuration?
|
Ah, this can't be done yet, but is a good idea for an addition! |
Looks like Angular 1.3.5 added a new updateOn option for "submit" a couple of days ago. angular/angular.js#7017 Not in their general release yet. |
Using the updated version of angular, you can add |
Is there a way to hide the validation messages for pristine fields?
The text was updated successfully, but these errors were encountered: