Am trying to use a pattern to validate my email input from the user through a form control.
I use the following to validate email id entered by the user.
'email': ['', [Validators.required, Validators.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$")]]
But when enter "abc@abcd" the form become valid and allow the user to submit. I can see that the pattern is not respected here. How can I force the email to be validated according to the pattern defined?