Angular 1.3


Forms validation

ngMessages

Enter something!
Enter something!
Required
Minlength
Pattern
Required
Minlength
Pattern

Custom async validator directive

Async validation in progress…
Async validator failed!

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

Formatted number: {{landCode.land_code}} {{formattedNumber}}
Is valid? {{validNumber}}
{{changes.join('\n')}}

Truthy-ness test

This is truthy
Empty array is truthy