How can i call a contoller method when swipe is triggered.
something like this
.directive('swiped', ['$ionicGesture', function($ionicGesture) {
return {
restrict: 'A',
link: function($scope, $element, $attr) {
console.log($scope, $element, $attr);
$ionicGesture.on('swipe', function(e) {
//call the controller method
},$element);
}
}
}]);