ngTouch
is the name of the optional Angular module that provides touch events and other
helpers for touch-enabled devices.
The implementation is based on jQuery Mobile touch event handling
(jquerymobile.com)
First include angular-touch.js
in your HTML:
<script src="angular.js">
<script src="angular-touch.js">
You can also find this file on the Google CDN, Bower (as angular-touch
), and on code.angularjs.org.
Then load the module in your application by adding it as a dependant module:
angular.module('app', ['ngTouch']);
With that you're ready to get started!
See $swipe
for usage.