You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
add validateOn to ng-model-options to make the $parsers run even when updates are pending #7016
On many cases it makes sense to have something like {updateOn: 'blur', validateOn: 'default'}. If this sounds reasonable to you I can have this PR ready this week. @petebacondarwin@lrlopez@IgorMinar - what do you think about this?
@IgorMinar I've discussed this with @petebacondarwin a couple of months ago and we both agreed that we don't see a very strong use case for this. I don't mind closing this and wait to see if someone asks for something similar in the future.
Activity
petebacondarwin commentedon May 19, 2014
Waiting for new validator pipeline to be merged before tackling this one.
shahata commentedon Jun 15, 2014
@petebacondarwin I've rebased this with the new validator pipeline change, but I think it needs to wait until #7836 is resolved
pocesar commentedon Aug 22, 2014
+1
IgorMinar commentedon Oct 2, 2014
I'm not a fan of this because it only adds more options and states without clear benefits.
IgorMinar commentedon Oct 2, 2014
Can you provide some strong use-cases that are not possible to implement in Angular 1.3 today?
shahata commentedon Oct 2, 2014
@IgorMinar I've discussed this with @petebacondarwin a couple of months ago and we both agreed that we don't see a very strong use case for this. I don't mind closing this and wait to see if someone asks for something similar in the future.
levic commentedon Jan 18, 2016
A use case that would be handled easily with
validateOnhttp://plnkr.co/6vRyCd94k36B6EDXPcmr
By using
ngModelOptions="{updateOn: 'submit'}"it allows you to not have to shadow the ng-model data you are modifying.Unfortunately it also means that it is not possible to easily provide validation feedback to the user. Adding
validateOnwould make this much simpler.BoLaMN commentedon Feb 5, 2016
i had the same use case as @levic so i made two decorators to enable this functionality
https://github.com/BoLaMN/angular-validate-on
sryzycki commentedon Jun 6, 2017
+1