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.
From the angularjs chat on freenode I got some more information.
ng-pattern stops the subsequent changes to the model whenever ng-pattern is false. So ng-change is a bad choice when triggering javascript to show/hide info popovers to hint the user that the input is not valid as it will stop triggering as soon as validation is false.
If this is not considered to be a bug at least the docs could be updated to state that ng-chage: "Evaluate given expression when model changes as the result of user interacting with the input" (pkozlowski_os). Perhaps with an example or reference to what cases ng-change would not be triggered.
Hi
When I use both ng-change and ng-pattern, it seem like ng-change stops triggering whenever validation is false.
Example here with explanation:
http://jsfiddle.net/Magnusart/bLk53/2/
The text was updated successfully, but these errors were encountered: