<td>
<div>
<ng-form name="mrpForm">
<input type="number" min="1" name="mrp" step="any" ng-model="sku.mrp" style="width:80px;" / required>
<span style="color:red;" ng-if="(mrpForm.mrp.$error.min)">Must be greater than zero</span>
</ng-form>
</div>
</td>
<td>
<ng-form name="packQtyform">
<input type="number" name="skupackQty" min="2" max="100" ng-model="sku.packQty" style="width:100px;" />
<span style="color:red;" ng-if="(packQtyform.skupackQty.$error.min)">Must be greater than 1</span>
<span style="color:red;" ng-if="(packQtyform.skupackQty.$error.max)">Maximum 100</span>
</ng-form>
</td>
<td>
<button class="col-md-12 col-sm-12 col-xs-12 btn btn-sm blue" ng-disable="!sku.mrp"
ng-click="addsku(sku);>Save</button>
</td>
In the above code, I want to make save button disable only if a sku.packQty value is an error and if sku.mrp empty,sku.packQty can be empty but it should not be an error If error message save button must be disabled.