I use AngularJS and HTML. Tell me how to change the function of the button in the calendar so that when I clicked on it, my function would be called. Now when you press the "OK" button, the date is accepted. I tried to listen to the event
$('.date-picker').on('apply.daterangepicker', function(ev, picker) { openDatePicker(); }); Connected daterangepicker
<input date-range-picker class="form-control date-picker" style="width: 200px;" ng-model="datePicker.date_range"/> $scope.openDatePicker = function () { console.log('open') }; 