Ionic swipe on div, how to trigger?


#1

Hello i tried to recognize swipe left/right and touch gesture on div using Ionic framework:

Documentation:

http://ionicframework.com/docs/api/directive/onSwipeLeft/

Code:

<div class="row" on-swipe-left="alert('right');">
          <div class="col" style="background-color: red;">.col</div>
</div>

But this is not working.

How can i easily recognize swipe on given element?

Thanks for any help.