<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js"></script>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<style type="text/css">
.lock {
opacity: 0.2;
}
</style>
</head>
<body ng-app="app">
<div class="container">
<div class="row" ng-controller="myController">
<div class="col-md-12">
<table class="table table-striped">
<thead>
<tr>
<th>Mouseup to Delete and Undo button</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="row in records" style="cursor:pointer">
<td ng-class={'true':'lock'}[row.hide]> {{row.text}} </td>
<td style="width:100px;">
<button ng-mouseup="row.hide=true" class="btn btn-danger btn-xs">
<span class="glyphicon glyphicon-remove"></span>
</button><button ng-mouseup="row.hide=false" class="btn btn-success btn-xs">
<span class="glyphicon glyphicon-repeat"></span>
</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script>
var app = angular.module("app", []);
app.controller('myController', ['$scope', function ($scope) {
$scope.records = [{ hide: false, text: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.when an unknown printer took a galley of type and scrambled it to make a type specimen book.' },
{ hide: false, text: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.when an unknown printer took a galley of type and scrambled it to make a type specimen book.' },
{ hide: false, text: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.when an unknown printer took a galley of type and scrambled it to make a type specimen book.' },
{ hide: false, text: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.when an unknown printer took a galley of type and scrambled it to make a type specimen book.' }]
}]);
</script>
</body>
</html>