I see this in my own app, but even on this sample code - http://codepen.io/calendee/pen/Jxozn - simply change the input type from text to email. The binding breaks and data becomes inaccessible. Bug or am I doing something wrong?
No everything is ok with your code
quote from angularjs documenatation
The value of ngModel won’t be set unless it passes validation for the input field. For example: inputs of type email must have a value in the form of user@domain.
See AngularJS Forms
So if you type a@a.com into your mail field set value gets set, because you passes the validation phase
1 Like
Thank you for the explanation. That did the trick for me.