I found the angular ui datepicker extremely
unhandy and You have to import many
things that You never use.
Have a quick look at datepickr:
http://code.google.com/p/datepickr/The only things to include are
a little js file (10 kB) and a little css file (2 KB)
In Your template You give the element
an id (in this case 'day'):
<input type="text" id="day" style="width:80px" />
and in Your controller
// attach a datepicker to the field 'day'
$scope.attachDatepickr = function() {
window.setTimeout("new datepickr('day', {'dateFormat': 'd.m.Y'})",1000);
};
datepickr(id,format) is in datepickr.js
The little timeout is needed to let Your
application finish.
Works just like expected and You can attach
the datepickr to many different elements.
If anyone has a more 'angularish' way (aka
a working binding that detects changes made
with datepicks): let me kmow !