How to use ng-minlength / maxlength properties in angularjs with example