Hi I am using this angular countdown plugin
http://siddii.github.io/angular-timer/
and I need to use the directive multiple times within the same scope. The plugin broadcasts a 'timer-tick' event which I want to listen for but only from a specific directive.
Whats the best approach to this problem? I only seem to be getting the event broadcasted for the first instantiation of the element. In my case it has an $id of 38.
Here is the code in my controller
$scope.$on('timer-tick', function (event, data){
console.log('Timer is ticking = ', data,'event : ',event,'scope ',$scope);
});
HTML for first timer directive
<span class="chat-time"><timer interval="1000" countdown="currentEvent.duration"> {{hhours}} : {{mminutes}} : {{sseconds}} </timer></span> <!-- event duration for host -->
HTML for second timer directive
<timer finish-callback="setUserStatus(true)" interval="1000" countdown="speed_roommating.session_clock"> {{hhours}} : {{mminutes}} : {{sseconds}} </timer>