Is it possible to allow multiple countries into phone validator?
These works individually :
1) new FormControl(null, Validators.compose([Validators.required, CustomValidators.phone('US')])),
2) new FormControl(null, Validators.compose([Validators.required, CustomValidators.phone('CA')])),
But when trying to do both ,"ERROR TypeError: Cannot read property '9' of undefined"
new FormControl(null, Validators.compose([Validators.required, CustomValidators.phone(['US','CA'])])),
Curious to know if there is multiple country support . If so how do we do?. Thank you
Is it possible to allow multiple countries into phone validator?
These works individually : 1) new FormControl(null, Validators.compose([Validators.required, CustomValidators.phone('US')])), 2) new FormControl(null, Validators.compose([Validators.required, CustomValidators.phone('CA')])),
But when trying to do both ,"ERROR TypeError: Cannot read property '9' of undefined"
new FormControl(null, Validators.compose([Validators.required, CustomValidators.phone(['US','CA'])])),
Curious to know if there is multiple country support . If so how do we do?. Thank you