0

Is there a way to perform checks on input attributes like you can for forms? https://angular.io/guide/form-validation

I'm trying to get the "Enter a small number" text to appear if a number larger than max was typed

<div class="ui input right labeled"> <input type="number" placeholder="{{ vm.object.objectTitle }}" step="any" min="1" max="1000" ng-model="vm.object.model" ng-change="vm.inputChanged()" name="inputFieldName"> </div> <div ng-if="inputFieldName.$error.max" style="color:red"> Enter a smaller number </div> 
2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.