app.directive('bcmiListDatePicker', function(){
return function (scope, element, attrs) {
element.bind('apply_date', function(event, start_date, end_date, period, period_type, label, input_id){
}
żeby dobrać się do elem i wywołać apply_date na nim trzeba dodać atrybut bcmi-list-date-picker a następnie:
angular.element($('[bcmi-list-date-picker]:visible')[0]).triggerHandler('apply_date', [ start_date, end_date, period, period_type, date_label, true ]);