The AngularJS ng-minlength directive is used to add the minlength validator to ngModel. It can be used with text-based input controls, but can also be applied to custom text-based controls.
Syntax