I have such strange issue:
When in my view i have declared directive 2 (and more) times i get such magic:
controller:
$scope.$broadcast('slideableClose');
and directive:
scope.$on('slideableClose', function(event) {
console.log('slideableClose');
action();
});
and when i broadcast my data, i see in console that it is called twice
how can i call it only one time, becouse it must be fired only once, but i need multiple directives on my page?