Skip to content

Commit

Permalink
Add an example for namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrybendy committed May 4, 2021
1 parent 22864ac commit 8ddf2b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ In your `.vue` file:
<span v-touch:tap="tapHandler" v-touch-class="active">Customize touch class</span>
<!-- or -->
<span v-touch:tap="tapHandler" v-touch-options="{touchClass: 'active'}">Customize touch class</span>

<!-- change the directive name to others -->
<span v-kiss:tap="tapHandler">Change namespace to 'kiss'</span>
```

If you use vue and this plugin in UMD way (in a script tag) , this plugin is auto used. So it's not necessary to write `Vue.use(Vue2TouchEvents)`.
Expand Down

0 comments on commit 8ddf2b1

Please sign in to comment.