angular-ui/angular-ui — pull request #225 by hvisser (2012-10-09 09:55:38+00:00)
Title: Keep ui-date input field in sync with date picker for manual input

When entering a date manually in an input field the date picker isn't always updated and will put the previously selected date in the model. Likewise, the input field itself isn't updated reflecting the date which is in the model. This pull request fixes that by setting the date on the date picker in the change event and if the date really changed, calling updateModel to get the Angular model updated.