{{ mainTitle }}

Client side validation it’s very important if it is used as help for the user to complete with success the submission of a form.
AngularJS directives for form validation

AngularJS has many directives to run form validation. Some of these (like required, pattern, etc.) repeat the behaviour of the new HTML5 attributes. The advantage of using AngularJS directives instead of classic HTML5 attributes, is that AngularJS way allows to mantain the two way data binding between model and view.

Success and Error Message
First Name is required Thank You!
Last Name is required Wonderful!
Email is required. Please, enter a valid email address. It's a valid e-mail!
Gender is required. Thank You, Mr. {{form.lastName}}! Thank You, Mrs. {{form.lastName}}!
Password is required. Ok!
Repeat password is required! Passwords do not match! Passwords match!
Country is required. Lovely place!
You must accept terms and conditions! Thank You!
Only Error Message
Url is required! Not Valid Url!
No Messages
Min Length and Max Length
Too short!
Too long!
Too long! Too short!
Min Number and Max Number
Number must not be higher than 10! Not valid number!
Number must be higher than 10! Not valid number!
Number must not be higher than 100! Number must be higher than 10! Not valid number!
{{ myModel | json }}