Validators pattern decimal and minus numbers

102

Validators pattern decimal and minus numbers -

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

Comments

Submit
0 Comments