Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .directive('detectGoGestures', function($ionicGesture) {
  2.   return {
  3.     restrict :  'A',
  4.  
  5.     link : function(scope, elem, attrs) {
  6.      
  7.       $ionicGesture.on('swiperight', scope.reportEvent, elem);
  8.       $ionicGesture.on('swipeleft', scope.reportEvent, elem);
  9.       $ionicGesture.on('drag', scope.reportEvent, elem);
  10.       $ionicGesture.on('dragend', scope.reportEvent, elem);
  11.       $ionicGesture.on('tap', scope.reportEvent, elem);
  12.       $ionicGesture.on('hold', scope.reportEvent, elem);
  13.     }
  14.   }
  15. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement