MD Ghouse MD Ghouse - 18 days ago 5
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>

<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>
</div>

Answer
<span class="Error"  ng-show="f1.nam.$error.minlength">Mobile number should be minimum 8 character</span>
Comments