The documentation says that you open a datepicker programmatically, but this does not provide an easy way to get a link to a datepicker that is already bound to an element.
In the project I'm working on, I have a datepicker directive that almost completely binds HTML code to myDatepicker directive. Inside this directive, the ng-click method associated with the <button> element is essentially:
scope.openDatepicker = function() { element.children('input').focus(); }
which worked well enough for me.
Since angular -strap has been rewritten to get rid of any bootstrap.js dependencies, a lot of bugs and oddities have appeared. I'm working on upgrading my project codebase to a newer version of angular -strap, and it seems to me that upgrading from Bootstrap UI would be a better choice, as its codebase is a bit more mature.
source share