I want to show a custom icon on thumbnail over. So in my example "upload-thumb" is my thumb and my custom icon is span.
The problem is that I am not sure how to target currently hovered thumbnail as I have a few of these dynamically generated. As what I have right now when hovering all of the span icons show up.
 <div class="upload-thumb" ng-mouseover="hoverIn($event)" ng-mouseleave="hoverOut($event)"><span class="delete-media" ng-show="hoverEdit"><i class="mdi mdi-delete"></i></span></div>
  $scope.hoverIn = function(event){
    //  this.hoverEdit = true;
  };
$scope.hoverOut = function(event){
    //  this.hoverEdit = false;
  };
Not sure why, but bin struggling with this for a while. Thanks.


.upload-thumb span.delete-media:hover{color:red}hoverEditistrue. All logic to display icon should then be bothered by CSS.<span class="delete-media" ng-show="hoverEdit" ng-class="{'hoverEdit': hoverEdit}">