Skip to content

Commit

Permalink
Updating README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleskey.K committed Oct 15, 2022
1 parent 624e1ab commit 353c930
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ import vueClickOutsideElement from 'vue-click-outside-element'

const app = createApp(App)

/* NOTE: By default directive mounts with `click-outside-element`
* `app.use(vueClickOutsideElement)`
* But you can name it whatever you want
* app.use(vueClickOutsideElement, 'my-name')
* And use it like `<div v-my-name="method"></div>`
*/

app.use(vueClickOutsideElement)
app.mount('#app')
```
Expand Down

0 comments on commit 353c930

Please sign in to comment.