Answers for "angular reactive forms pattern validation only numbers"

1

angular validators number only in reactive form

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

Code answers related to "angular reactive forms pattern validation only numbers"

Code answers related to "Javascript"

Browse Popular Code Answers by Language