ngMinlength adds the minlength validator to ngModel. It is most often used for text-based input controls, but can also be applied to custom text-based controls.
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.
minlength attribute is used, with two differences: ngMinlength does not set the minlength attribute and therefore HTML5 constraint validation is not available. ngMinlength value must be an expression, while the minlength value must be interpolated. <ng-minlength> ... </ng-minlength>
<ANY> ... </ANY>
© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.6.4/docs/api/ng/directive/ngMinlength