An error object with the email
property if the validation check fails, otherwise null
.
This validator uses a regular expression similar to that of .NET's EmailAddressAttribute
class.
to check if the control value is a valid email address. This is used rather than Angular's built-in email validator
to have consistent validation across between Angular (browser) and .NET (server).
Validator that requires the control value to be a valid email address.