fragaria / angular-daterangepicker

Angular.js wrapper for dangrossman/bootstrap-daterangepicker
MIT License
519 stars 371 forks source link

Starting date on load is NaN. #94

Closed djaevlen closed 9 years ago

djaevlen commented 9 years ago

Hi there,

When i use your example (https://github.com/fragaria/angular-daterangepicker/blob/master/example.html) and provide it with the dependencies in a plunker, the input fields are empty and my $scope.date's is "NaN". Not matter if i try to use hardcoded dates or moment.js dates.

My plunkr: http://plnkr.co/edit/ENvgRQinaixbpwI4ab1l?p=preview

Can you please take a look on this?

alexpx commented 9 years ago

+1

cpeker commented 9 years ago

Hi, Is there any solution for this? I can not call the directive with default values.

Thanks

alexpx commented 9 years ago

It's happening when working with 2.X version of bootstrap daterangepicker.

krtek commented 9 years ago

@alexpx Thanks! Didn't thought of this – 1.x version works. Must see what happens, will just update dependency now.

alexpx commented 9 years ago

Thanks. it's important that the directive will work with 2.x version since it introduced some cool stuff.

djaevlen commented 9 years ago

Ahh yeah thanks. Changing to 1.x did the trick. Gonna use 1.x from now on until 2.x gets support.

abhith commented 8 years ago

+1