Improve this Doc View Source ngMaxlength
- directive in module ng
The validator sets the
maxlength error key if the
ngModel.$viewValue is longer than the integer obtained by evaluating the Angular expression given in the
ngMaxlength attribute value.
maxlengthattribute is used, with two differences:
ngMaxlengthdoes not set the
maxlengthattribute and therefore HTML5 constraint validation is not available.
ngMaxlengthattribute must be an expression, while the
maxlengthvalue must be interpolated.
- This directive executes at priority level 0.
- as attribute:
<ANY> ... </ANY>
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.