Remove item from list after filtering
I have the following issue: I've create a list that allow the user to delete an item from list, as following: When user click on trash icon, the item is removed normally. The problem is when the user uses the filter on top. In that case, if I delete the number 6565 (index 4 in original list, 1 on filtered list), the item deleted is on index 1 on original list, resulting on delete the register with number #564456 This is my delete call on click: $scope.deleteOwn = function (uuid) { console.log(uuid); var coupon = $scope.ownsCoupons[uuid]; Coupon.delete({'id' : coupon.uuid}, function () { $scope