MD Ghouse MD Ghouse - 1 year ago 71
AngularJS Question

By Using Bootstrap how to apply rangeValidator

Here im Using Bootstrap with angularJs please helpme how can i apply Range validation

<div class="col-sm-4">
<b style="font-family:Arial;text-transform:capitalize">Name</b>

<div class="col-sm-8 left-addon">
<input type="text" name="nam" class="form-control" min="3" max="5" ng-model="Name" ng-class="submitted?'ng-dirty':''"required autofocus />
<i class="glyphicon glyphicon-user"></i>
<span class="Error" ng-show="(f1.nam.$dirty ||submitted) && f1.nam.$error.required">Please Enter Your Name</span>

Answer Source
<span class="Error"  ng-show="f1.nam.$error.minlength">Mobile number should be minimum 8 character</span>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download