I want to do a simple comparison of 2 emails.
I'm curious about how data syncs between the Controller and the models. I attached a screenshot where you can the the difference in the outputs and the actual view/model values.
ng-keydown="equal(newNote.email)"
is used on the input field.
- What is the reason for this behaviour?
- Is there some kind of pending $digest cycle going on under the hood of Angular?
- How can I make this work?
Thanks in advance!