Best way to handle a click on the ion-delete-button?


#1

Hi, I have a Ionic List and are displaying the ion-delete-button.
What is the best way to handle a click on it? When I just use ng-click I don’t know how to get the Element or die Index of the element which was clicked.

please help


#2

I found the solution:

<ion-delete-button ng-click="elementClicked($index)" class="ion-minus-circled"></ion-delete-button>