How can I show the ion-delete-button only in one item of a list


#1

Hi!

I try that when I click a item, the ion-delete-button is shows only in this item, but I can´t get it.

Thanks in advance!


How to toggle show-delete in list for individual rows only
#2

i did something similar,
when i swipe it will open ion-option-button
here samle:

<ion-list style="width:100%;" >
  <ion-item class="item-avatar" href="#/tab/detail/{{item.id}}"
            collection-repeat="item in data.list"
            collection-item-width="'100%'"
            collection-item-height="95" >
      <img class="round" ng-src="{{FullImgPath(item.photo)}}">
        <h2>{{item.name}}</h2>
        <ion-option-button class="button-assertive" ng-click="delete($index)">
           Delete
        </ion-option-button>
      </ion-item>
  </ion-list>