Ng-click on ion-delete-button has been never called

Hey all!

I ran into some issues that my listener on ion-delete-button has been never called. This what I did

Moreover, if I use expression like ‘shouldShowDelete = !shouldShowDelete’ instead of function calling item-delete-buttons won’t be displayed then.

What’s wrong with my code?

I was having this same issue.

First off, you have your attribute set to ‘nd-click’ not ‘ng-click’ so that could be an issue.

Second, I added the ‘button’ class to the ion-delete-button and the callback is now being fired.