all files / app/main/components/material-docs/demo-partials/swipe/demoBasicUsage/ script.js

11.11% Statements 1/9
100% Branches 0/0
0% Functions 0/5
11.11% Lines 1/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                                  
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!!');
    };
  });