ionSwipe undefined error


#1

Hello,

I am trying to do a swipable list of items like this:

  <ion-list>
    <ion-item-sliding *ngFor="let venue of venues" #slidingVenue>
      <ion-item>
        <ion-item-options side="right">
          <button ion-button color="primary" (click)="action(slidingVenue)">
            action1
          </button>
        </ion-item-options>
      </ion-item>
    </ion-item-sliding>
  </ion-list>

I receive the following error:

item-sliding.js:160 Uncaught TypeError: Cannot read property ‘ionSwipe’ of undefined

I tried to add (ionSwipe)=“someFunc()” but with no luck.

Please advise.

thanks,
Roman


#2

I had a wrong syntax. thanks to stackoverflow for help: link