luisfarzati / ng-bs-daterangepicker

AngularJS directive for bootstrap-daterangepicker
http://luisfarzati.github.io/ng-bs-daterangepicker/
MIT License
246 stars 167 forks source link

Why startDate and endDate are not passed when creating daterangepicker ? #94

Open Jurigag opened 8 years ago

Jurigag commented 8 years ago

I had to add something like this:

options.startDate = $scope[$attributes.ngModel].startDate; options.endDate = $scope[$attributes.ngModel].endDate;

To get actual dates in view which were setted in $scope.

miikeat commented 8 years ago

where did you add those two lines?

Jurigag commented 7 years ago

@miikeat

After

https://github.com/luisfarzati/ng-bs-daterangepicker/blob/master/src/ng-bs-daterangepicker.js#L24