angular reactive forms validators pattern code example
Example 1: angular validators number only in reactive form
new FormControl({value: field.value}, [Validators.required, Validators.pattern(/^-?(0|[1-9]\d*)?$/)])
Example 2: angular number validation
ng-pattern="re"