Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ng-model on html5 input type=email #1006

Closed
igos opened this issue Apr 1, 2014 · 4 comments
Closed

Ng-model on html5 input type=email #1006

igos opened this issue Apr 1, 2014 · 4 comments

Comments

@igos
Copy link

igos commented Apr 1, 2014

ng-model doesn't work on html5 input types.

Showcase:
http://cdpn.io/njKdx

@rvanbaalen
Copy link

rvanbaalen commented Apr 1, 2014

That's not an Ionic issue. That is, because Angular automatically validates input[type='email'] fields. When you don't input a valid e-mail address by default, it stays empty.

It's part of the AngularJS form validation logic.

It works when you set $scope.myTitle to an e-mail address:

-Edit: broken link, removed-

@igos
Copy link
Author

igos commented Apr 1, 2014

@rvanbaalen Thank you.

@igos igos closed this as completed Apr 1, 2014
@rvanbaalen
Copy link

rvanbaalen commented Apr 1, 2014

I've updated the pen to better illustrate the form validation status for you:

-Edit: broken link, removed-

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants