| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1× | angular.module('demoSwipe', ['ngMaterial'])
.controller('demoSwipeCtrl', function($scope) {
$scope.onSwipeLeft = function(ev) {
alert('You swiped left!!');
};
$scope.onSwipeRight = function(ev) {
alert('You swiped right!!');
};
$scope.onSwipeUp = function(ev) {
alert('You swiped up!!');
};
$scope.onSwipeDown = function(ev) {
alert('You swiped down!!');
};
});
|