fragaria / angular-daterangepicker

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

How to set initial data to Single date picker? #300

Closed allawitte closed 5 years ago

allawitte commented 5 years ago

If I use Single date picker option, I have today date as initial value of the picker. How I can pass to the Single date picker some specific date? I tried to do as vm.expDate = {startDate: new Date(2015, 2, 3), endDate: new Date(2019, 2, 3)}; but no reaction, I still have only today.