@IonicGeoff wrote:
Is email validation working in Ionic 4?
I have tried Validators.email and also this pattern…
[Validators.required, Validators.minLength(5), Validators.maxLength(50),Validators.pattern(/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i)]
…but all patterns accept the value myname@, as soon as I type the @ the validation passes?
Do I have to write a custom validator?
Posts: 1
Participants: 1