fragaria / angular-daterangepicker

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

Update opt object on model date set #129

Closed liorcode closed 8 years ago

liorcode commented 8 years ago

When setStartDate/setEndDate is called (when the model date is set) the internal opts object should update so it should "remember" this change when re-initing.

Currently, without this change, when the options are set from the template it triggers the "opts" watcher, which calls init - and loses the currently selected start/end date.