Skip to content

Commit

Permalink
improve readme, add example for how to pass arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
gonnavis committed Nov 5, 2018
1 parent 206be2b commit 6bb7069
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ Vue.use(VueHammer)

<div v-hammer:swipe.left="onSwipeLeft">Swipe me!</div>

<div v-hammer:swipe.left="function(){ onSwipeLeft(item, i) }">Swipe me!</div>
or more concise
<div v-hammer:swipe.left="()=>onSwipeLeft(item, i)">Swipe me!</div>
<div v-hammer:swipe.left="(event)=> onSwipeLeft(event, item, i)">Swipe me!</div>
```

#### Configuring Recognizer Options
Expand Down

0 comments on commit 6bb7069

Please sign in to comment.