An Ember component for the mailcheck library to improve the UX of your app by suggesting a domain when your users misspell it in an email address.
ember install ember-mailcheck
In order to create an email input, you can call the mail-check
component like so:
Upon blur, the email will be validated with mailcheck. If there is no email domain the
user will see the following hint: You seem to be missing an email domain, like @gmail.com or @hotmail.com
.
If there's a typo in the email field, like johnotander@gmal.com
, a hint will appear that
says Did you mean johnotander@gmail.com?
. As an added convenience, the email is clickable,
and will automatically populate the input when clicked.
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.
MIT
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Crafted with <3 by John Otander(@4lpine).