Swipe left with ion-item


#1

Hello,

I am trying to implement swipe on items to reveal options (Edit/Delete) but its not taking.

My list looks like this

<ion-list can-swip="true" show-delete="true" >
  <ion-item ng-repeat="group in groups" ui-sref="app.group({id : group._id.$oid})" >
    {{group.name}}
  </ion-item>
</ion-list>

Any ideas why the swipe doesnt work like in the example ?


#2

try can-swipe instead of can-swip :wink:


#3

yikes. Still no dice, probably b/c can-swipe=true is the default.


#4

I am also noticing in console

TypeError: e.gesture is undefined (ionic.bundle.js 6703)


#5

Is there a specific version of ionic that can do this ? I am on beta8 , not sure if thats the issue


#6

did you solve it ? I am having the same problem


#7

I just need to add both cordova and ng-cordova
< script src=“js/ng-cordova.min.js”>
< script src=“cordova.js”>
Then only moving the mouse in order to test on hybrid mobile app , it worked for me. if you have any other solution please let me know