The validator sets the
minlength error key if the
ngModel.$viewValue is shorter than the integer obtained by evaluating the AngularJS 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.
<ANY ng-minlength="expression"> ... </ANY>
|ngMinlength|| || |
AngularJS expression that must evaluate to a
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.