Having trouble figuring out what to insert in the last span element where it mentions "I_DO_NOT_KNOW", here is the markup provided:
<div class="row">
<div class="key" translate>Label</div>
<div class="value form-group">
<input id="myId"
class="form-control"
type="text"
name="nameAttrFoo"
ng-model="vm.myModelValue"
ng-blur="sanitizeInput(vm.myModelValue)"
required
/>
</div>
<div class="value form-group pull-right" ng-hide="formName.nameAttrFoo.$untouched">
<span class="note note-error"
ng-show="formName.nameAttrFoo.$error.required"
ng-hide="formName.nameAttrFoo.$dirty">
Required field!
</span>
<span class="note note-error" ng-if="I_DO_NOT_KNOW">
Number exceeds the maximum prime value!
</span>
</div>
and here is the comparison function that returns true or false:
var boolie = false;
$scope.sanitizeInput = function(myModelValue) {
var toInt = parseInt(myModelValue);
var primeNr = 2147483647;
if (toInt > primeNr) {
boolie = true;
} else {
boolie = false;
}
}
struggling to display the user-feedback line "Number exceeds the maximum prime value!" in the ng-if="I_DO_NOT_KNOW", any assistance would be greatly appreciated.