angular form validators pattern code example
Example 1: pattern validator angular
<input name="firstName" ngModel pattern="[a-zA-Z ]*">
Example 2: angular number validation
ng-pattern="re"
<input name="firstName" ngModel pattern="[a-zA-Z ]*">
ng-pattern="re"