I am using input type number in my html page but I don't want the numbers in e format . I am trying to use a regex like follows:
$scope.regexInteger = '^[0-9^e]*$';
and trying to invalidate it using ng-messages
<input type="number" maxlength="20" class="w3-input w3-border w3-round-large" ng-pattern="regexInteger" name = 'intVal' />
<div ng-messages='intVal' >
<div ng-message="pattern">Invalid Integer</div>
</div>
But I am not able to invalidate it using the ng-messages. I guess I am not passing the correct regex.
Please correct me where I went wrong.