Angular 1.2
Forms validation
ngMessages
Show error on blur even if nothing was entered to the input:
Enter something!
Show error when the form is submitted:
Submit
Enter something!
Probably impossible
Show all errors
Email
Required
Minlength
Maxlength
Pattern
Submit
Show only one of many errors at once:
Required
Minlength
Pattern
Submit
Custom async validator directive
Async validation (4 seconds):
Async validation in progress…
Async validator failed!
Submit
ngModelOptions
Trigger model change only on blur
Value:
{{finalModelValue1}}
Trigger model change on blur or 1 second after the last keystroke
Value:
{{finalModelValue2}}
Allow invalid values in the model
Value:
{{myForm6.modelValue3.$viewValue}}
Invalid!
Truthy-ness test
Enter any text to see if it's truthy
This is truthy
Empty array is truthy