luisfarzati / ng-bs-daterangepicker

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

Add this small code, that helps so much. #116

Closed AmitMY closed 7 years ago

AmitMY commented 8 years ago

On line 33, create a new line, and write: options.autoUpdateInput = false;

When true (by default) it does $(this).val(start+ " " + seperator + " " + end) which is not an object, but a string! Then, you can also use the latest version of bootstrap-daterangepicker, and it works even better.

OR, even better, add:

angular.extend(options, scope.options) and bind options to an attribute.