In this example of Ng-Mouseup, We have img.selected as false bydefault and on ng-mouseup the value of it will be set to true. See the code:

<!DOCTYPE html> <html xmlns=""> <head> <title></title> <script src=""></script> <link rel="stylesheet" href=""> </head> <body ng-app="app"> <div class="container"> <div class="row" ng-controller="myController"> <div class="col-md-3"></div> <div class="col-md-6 well"> <h3>Select Images On Mouse Up</h3> <div class="row text-center"> <div class="col-md-4" style="margin-bottom:20px;" ng-repeat="img in images" ng-mouseup="style={ 'height': '90px', 'width': '140px' };img.selected=true"> <div class="row"> <img ng-style="style" ng-src="{{img.path}}" /> </div> <div class="row"> <img ng-hide="img.selected" height="30" width="30" src="" /> <img height="30" width="30" ng-show="img.selected" src="" /> </div> </div> </div> </div> <div class="col-md-3"></div> </div> </div> <script> var app = angular.module("app", []); app.controller('myController', ['$scope', function ($scope) { $ = { 'height': '100px', 'width': '150px' }; $scope.images = [{ id: '1', path: '', selected: false }, { id: '2', path: '', selected: false }, { id: '3', path: '', selected: false }]; }]); </script> </body> </html>