Open igdtl opened 10 years ago
Thanks for the heads up
If there is a datepicker in the angular-ui, why do you want to use this one ? Is there some limitation that this one doesn't have ?
I just made a new version. In the new version the module and directve name was changed to ng-bs3-datepicker.
Hope this will help
Could you also update the README and the jsFiddle? Currently the demo is broken.
Sorry for the late response. Last time i tryed i couldn't find a way to use jsfiddle correctly. It seems that i couldn't fetch the dependecy in the correct order, maybe a new behavior of the site.
Could you provide a working demo?
Hi,
It seems there is a conflict between angular-bootstrap3-datepicker
datepicker
directive and the one present in angular-ui-bootstrapI have created a simple test in order to show this problem:
test.html
test.js
Notice that I have included
ui.bootstrap
as a dependency on the testAs you can see in the following image, when the page is loaded it fails with two somewhat cryptic error messages:
However, by changing the name of the directive to something else (i.e. from
datepicker
todatepicker2
)$ diff -ur old/ new/
it works like a charm:
AngularJS definitions naming collisions is a known problem and, as far as I know, the preferred way to avoid this problem is by using a namespace.