Angular 1.3
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!
Show all errors
Required
Minlength
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:
{{modelValue1}}
Trigger model change on blur or 1 second after the last keystroke
Value:
{{modelValue2}}
Allow invalid values in the model
Value:
{{modelValue3}}
Invalid!
$scope.$watchGroup
Select country…
Formatted number: {{landCode.land_code}} {{formattedNumber}}
Is valid? {{validNumber}}
{{changes.join('\n')}}
Truthy-ness test
Enter any text to see if it's truthy
This is truthy
Empty array is truthy