I think you'd want to use one of the below selectors in order to bind the email validator to your FormControl.
Template forms have several directive validators by default that target standard HTML properties, like email.
I don't think this is true. FormGroupDirective
I didn't know about that. I guess you could use that, but you would need a template reference to that form directive. I wouldn't like to mix up and have some things in the template and other in the code. As far I know, the form group that you have in your controller doesn't have any additional properties, that's just the directive in the template.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for the article!
I think you'd want to use one of the below selectors in order to bind the
email
validator to yourFormControl
.Also
I don't think this is true. FormGroupDirective
Template forms have several directive validators by default that target standard HTML properties, like
email
.I didn't know about that. I guess you could use that, but you would need a template reference to that form directive. I wouldn't like to mix up and have some things in the template and other in the code. As far I know, the form group that you have in your controller doesn't have any additional properties, that's just the directive in the template.