How do i close a <ion-item-button> from controller

I want to close a swiped list item from the controller after the user clicks an .
How can i do that?

Here a codepen of what i’m trying to achieve

You have two options depends on what you actually want to accomplish.

  1. Remove the item from the scoped list when the button is clicked
  2. Turn on a “hide” flag property on the list item when the button is clicked and use an ng-if to hide/show depending on the value of the flag.

Really depends on what your end goal is… actually remove the item or just hide it.