Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Email validation not correct #7979

Closed
seminda opened this issue Jun 25, 2014 · 1 comment
Closed

Email validation not correct #7979

seminda opened this issue Jun 25, 2014 · 1 comment

Comments

@seminda
Copy link

seminda commented Jun 25, 2014

When we use email validation its work. but if you type email 'something@some' its validate it as correct. if we put 'something@some.'then its start validate again.

@caitp
Copy link
Contributor

caitp commented Jun 25, 2014

that's because something@some is an actually valid email address!

There are more advanced things you can do to validate email addresses, like pattern validation with ng-pattern, asynchronous validation to test if it's an actual account on your server, etc (Matsko has an example of this sort of validation with a nice UI using the new ngMessages module on his blog), or just a custom extra validator directive.

We're thinking about making it easier to insert custom email validation rules, but my personal opinion is that input[type=email] should behave the way native HTML email validation behaves, and you can tack on extra validation logic separately.

Anyways, since this is a dupe (#7705, #7798, etc), I think we can close this and carry on the discussion elsewhere

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants