I am trying to develop a contact form, I want user to enter phone number values between length 10-12.
Notably same validation is working on Message
The Form Validation of multiple parameters or multiple conditions should be composed as single validator otherwise you will get observable or promise error:
phone: ['', Validators.compose([Validators.required,Validators.min(10000000000), Validators.max(999999999999)])],