Podcast/lib/angular/docs/partials/api/ngTouch.html
2013-09-22 11:21:37 +02:00

13 lines
1.5 KiB
HTML
Executable file

<a href="http://github.com/angular/angular.js/tree/v1.2.0rc1/src/ngTouch/touch.js#L3" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a><a href="http://github.com/angular/angular.js/edit/master/src/ngTouch/touch.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable=""></code>
<div><span class="hint"></span>
</div>
</h1>
<div><div class="ngtouch-page"><h2>ngTouch</h1>
<p><code>ngTouch</code> 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
(<a href="http://jquerymobile.com/">jquerymobile.com</a>)</p>
<p><h1>Installation</h2><p>First include <code>angular-touch.js</code> in your HTML:</p><pre><code> &lt;script src=&quot;angular.js&quot;&gt;
&lt;script src=&quot;angular-touch.js&quot;&gt;</pre></code><p>You can also find this file on the <a href="https://developers.google.com/speed/libraries/devguide#angularjs">Google CDN</a>, <a href="http://bower.io/">Bower</a> (as <code>angular-touch</code>), and on <a href="http://code.angularjs.org/">code.angularjs.org</a>.</p><p>Then load the module in your application by adding it as a dependant module:</p><pre><code> angular.module(&#39;app&#39;, [&#39;ngTouch&#39;]);</pre></code><p>With that you&#39;re ready to get started!</p></p>
<p>See <a href="../../../../../index.htmlh.$swipe"><code>$swipe</code></a> for usage.</p>
</div></div>