I have some troubles to get the datepicker of the angular-ui framework to work. I use
<input ui-date ng-model="project.due" value={{project.due}} ... />
This leads to calling two watchers in $digest(), first for
watch.get.exp == "project.due"
the second for
watch.get.exp == "{{project.due}}".
The first watcher sets the correct date string, the second one fills in some ISO formatted string. And because $digest() iterates about the watchers form highest index to the lowest the wrong watcher wins. An example can be found here: http://plnkr.co/edit/NvLgzw What I'm doing wrong?
Lutz