AngularJS expression that must evaluate to a Number or String
parsable into a Number. Used as value for the minlength
ngModel.NgModelController#$validators validator.
Description
ngMinlength adds the minlength ngModel.NgModelController#$validators validator to ngModel ngModel.
It is most often used for text-based input input controls, but can also be applied to custom text-based controls.
The validator sets the minlength error key if the ngModel.NgModelController#$viewValue ngModel.$viewValue
is shorter than the integer obtained by evaluating the AngularJS expression given in the
ngMinlength attribute value.
**Note:** This directive is also added when the plain `minlength` attribute is used, with two
differences:
`ngMinlength` does not set the `minlength` attribute and therefore HTML5 constraint
validation is not available.
The `ngMinlength` value must be an expression, while the `minlength` value must be
interpolated.
Param: ngMinlength
AngularJS expression that must evaluate to a
Number
orString
parsable into aNumber
. Used as value for theminlength
ngModel.NgModelController#$validators validator.Description
ngMinlength adds the minlength ngModel.NgModelController#$validators
validator
to ngModelngModel
. It is most often used for text-based inputinput
controls, but can also be applied to custom text-based controls.The validator sets the
minlength
error key if the ngModel.NgModelController#$viewValuengModel.$viewValue
is shorter than the integer obtained by evaluating the AngularJS expression given in thengMinlength
attribute value.