<div class="form-group" ng-show="currentGuest.oNum2 !='' || currentGuest.number2!=0"> <label class="control-label" title="@String.Format(Labels.userDefinedXY, Labels.number, "2")">{{currentGuest.oNum2}}</label> <input type="number" name="number2" id="number2" class="form-control" placeholder="@String.Format(Labels.numberX, "2")" min="-2147483648" max="2147483647" ng-model="currentGuest.number2" /> </div> <div class="field-validation-error"> <span ng-show="form.editGuestUserFields1Form.number2.$error.maxlength && form.editGuestUserFields1Form.number2.$dirty"> @String.Format(Messages.cannotExceed, String.Format(Labels.textX, "1"), 15) </span> </div>I want to add validation for that field, but I can not figure out what should I use for min / max error. The current field validation is from the textbox and it works for ng-maxlength attribute. I want to figure out what to use for min or max attributes validation.