I am using Angular 2 and ionic 2 and am trying to capture left and right swipes. I can capture a swipe but can't work out how to determine if it is a left or right swipe.
In my html I have:
<ion-content (swipe)=swipeEvent($event)>
This calls swipeEvent
every time a swipe occurs.
My swipeEvent
javascript code looks like this:
swipeEvent(event){
alert('swipe');
}
How can I determine if it is a left or right swipe.