Last active
August 29, 2015 14:16
-
-
Save in-async/8ffe02fdf724846ed159 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>JS Bin</title> | |
<style> | |
body { | |
margin: 0; | |
font-size: 30px; | |
line-height: 1.25; | |
} | |
#content { | |
padding: .5em; | |
background-color: #eee; | |
height: 600px; | |
} | |
</style> | |
</head> | |
<body ng-app='myApp'> | |
<div id="content" | |
ng-controller='fooCtrl' | |
ng-swipe-left='foo="swipe-left"' | |
ng-swipe-right='foo="swipe-right"' | |
> | |
{{foo}} | |
</div> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular-touch.min.js"></script> | |
<script> | |
// ngTouch モジュールに依存 | |
angular.module('myApp', ['ngTouch']) | |
.controller('fooCtrl', function($scope) { | |
$scope.foo = 'foo by app'; | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment