I have dart image being generated in one controller which has a unique id
event.img = angular.element(`
<div class= "your-container">
<img src="${getDartImage(event)}"
ng-mouseenter="$ctrl.clicker(${event.id})" class="dart">
</div>`);
event.img = $compile(event.img)($scope);
I also have a div being generated in another controller which also has a unique id.
<scheduled-event
event="event"
ng-repeat="event in $ctrl.adherence.events"
ng-mouseenter="$ctrl.clicker1($ctrl.adherence.events[$index].id)">
</scheduled-event>
I want to match these ids and when I do a ng-mouseeenter on one element, lets say a dart, the div border - colour with the matching id changes.