javascript - How to trigger form validation css classes, when there's form default data? -
i've generated form default data, when user clicks on submit ngvalidate should trigger correspondent css class if data valid or invalid.
in following example, email model data invalid:
http://plnkr.co/edit/zb74fvmipheesotyzbez?p=preview
i'd know how make ng-validate trigger error class (style red background) when user clicks submit ?
thanks looking!
the issue, understand it, data being pre-validated , not bound input. if bound input, shown invalid automatically.
there open issue related this: https://github.com/angular/angular.js/issues/1412
Comments
Post a Comment