angular validators number only in reactive form

164

angular validators number only in reactive form -

new FormControl({value: field.value}, [Validators.required, Validators.pattern(/^-?(0|[1-9]\d*)?$/)])

Comments

Submit
0 Comments