Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Inndy committed Jan 4, 2017
1 parent 36f3836 commit 6512c86
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,28 @@ An simple vuejs 2 binding for clipboard.js
## Usage

```html
<template id="temp">
<div>
<input type="text" v-model="message">
<button v-clipboard:copy="message">Copy</button>
<div id="app"></div>

<template id="t">
<div class="container">
<input type="text" v-model="message">
<button type="button" v-clipboard:copy="message">Copy!</button>
</div>
</template>

<script>
export default {
data () {
new Vue({
el: '#app',
template: '#t',
data: function () {
return {
message: 'Hello, World'
message: 'Copy These Text'
}
}
}
})
</script>
```

### License

[MIT License](LICENSE)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-clipboard2",
"version": "0.0.3",
"version": "0.0.4",
"description": "A Vuejs2 binding for clipboard.js",
"main": "vue-clipboard.js",
"scripts": {
Expand Down

0 comments on commit 6512c86

Please sign in to comment.