ui-validate
ui-validate copied to clipboard
invalid value is bound to model
When I my validation expression returns false, the invalid value is bound to the model, anyway. This isn't how any of the pre-canned or custom validators work. Why does it behave this way?
I also noticed this. If you use ui-validate-async, the model is updated prior to the validation completing, so feasibly if the validation requires a httprequest, someone can fill in a valid value, then change it to an invalid one, and quickly hit the submit button before the validation completes.