Improve this Doc View Source ngMinlength
- directive in module ng
The validator sets the
minlength error key if the
ngModel.$viewValue is shorter than the integer obtained by evaluating the Angular expression given in the
ngMinlength attribute value.
minlengthattribute is used, with two differences:
ngMinlengthdoes not set the
minlengthattribute and therefore HTML5 constraint validation is not available.
ngMinlengthvalue must be an expression, while the
minlengthvalue 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.