Skip to content

Commit

Permalink
Merge pull request #46 from yalishizhude/master
Browse files Browse the repository at this point in the history
docs(recognizers): add documentation for recognizer usage
  • Loading branch information
wzr1337 committed Nov 2, 2015
2 parents c1135a2 + bb12044 commit 780af93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ AngularJS directive that adds support for multi touch gestures to your app, base

* Include `gestures.js` or `gestures.min.js` into your page
* Declare `'angular-gestures'` as a dependency for your angular app: `angular.module('myApp', ['angular-gestures']);`
* Config the **recognizers** before you use the directive like this: `hammerDefaultOptsProvider.set({recognizers: [[Hammer.Tap, {time: 250}]] });`
* Use attributes on containers the same way you use `ng-click`: e.g. `hm-tap`
```HTML
<button hm-tap="add_something()">Tap me</button>
Expand Down

0 comments on commit 780af93

Please sign in to comment.