My current method involves using the regex /^[0-9]+$/ to restrict text box input to numbers only. While it is functioning correctly, I have noticed that when a user types something like +124, the text box is not being recognized as invalid.
<form name="myForm" novalidate>
<input type="number" ng-model="age" name="age" ng-pattern="/^[0-9]+$/" />
<h3>Valid Status: {{myForm.age.$valid}}</h3>
</form>
Input: 123 Output: myForm.age.$valid - true
Input: -123 Output: myForm.age.$valid - false
Input: +123 Output: myForm.age.$valid - true (shouldn't be true)