node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

vue-clipboard

vue-clipboard

clipboard directly for Vue.js

Live demo

Installation

NPM

$ npm install vue-clipboard

Usage

Using the v-touch directive

var VueClipboard = require('vue-clipboard')
 
Vue.use(VueClipboard)
 
new Vue({
  data: {
    copyData: 'copy data'
  }
})
<button v-clipboard:copy="copyData">Copy</button>