Package Exports
- vue-clipboard2
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-clipboard2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-clipboard2
An simple vuejs 2 binding for clipboard.js
Install
npm install --save vue-clipboard2
or use dist/vue-clipboard.js
without webpack
Usage
<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>
new Vue({
el: '#app',
template: '#t',
data: function () {
return {
message: 'Copy These Text'
}
}
})
</script>