When I delete an element as a swipe list, the swipe options stay open, I want this element to be deleted and close;
<ion-item>
<p><h2>{{detail.descripcion}}</h2></p>
<p>{{detail.observacion}} </p>
<p>{{detail.total_base}} + {{detail.total_iva}} = {{detail.total_pagar}}</p>
<span class="badge badge-dark">{{detail.total_items}}</span>
<ion-option-button class="button-balanced" ng-click="sust_item(detail,1)">
-1
</ion-option-button>
<ion-option-button class="button-balanced" ng-click="add_item(detail,1)">
+1
</ion-option-button>
</ion-item>
code for delete:
$scope.del_order = function(item, index) {
$scope.orders_list.splice(index, 1);
//$scope.confirmDelete(item, index);
};
Delete item and swipe option stay open: