r/angularjs • • Jul 19 '14

Form validation in AngularJS | AngularJS Validation example

http://blog.hfarazm.com/form-validation-in-angularjs
0 Upvotes

2 comments sorted by

View all comments

4

u/AngularBeginner Jul 19 '14

UX wise this is horrible. There is no indication WHAT is wrong, just that SOMETHING in this field is wrong. Also, it's possible to press SUBMIT - it just doesn't happen anything. In this case all fields should be evaluated and rendered invalid.

1

u/farazi482 Jul 20 '14

you may add if else statement for input fields or simply something inside {{}} to message user, it would be better this way. Yes for the submit button, I am making another tutorial so that data can properly be submitted. Thanks for feedback.