Swipe directive?


#1

Is there a ng-swipe-left / ng-swipe-right attribute available in Ionic? If not, any pointers on how to go about custom-building such as a directive using $ionicGesture? My hunch is Ionic doesn’t have a swipe attribute, but supports adding such (via the above) - but looking at $ionicGesture, methinks I’m in over my head.


#2

You can detect gestures like in this sample : http://codepen.io/calendee/pen/fbEsw?editors=101

here are the docs for it :

http://ionicframework.com/docs/api/service/$ionicGesture/
http://ionicframework.com/docs/api/utility/ionic.EventController/#onGesture