vue-simple-print
v0.1.2
Published
This is a simple directive to print html section with vue.
Downloads
51
Maintainers
Readme
VueSimplePrint
This is a simple directive to print html section with vue.
DEMO
Installation
npm install vue-simple-print --save
Usage
Import the module into your main.js
file.
import VueSimplePrintPlugin from 'vue-simple-print';
Vue.use(VueSimplePrintPlugin);
And you can use the directive in your app
<template>
<div>
<button
v-simple-print="'contentToPrint'"
>Print Content</button>
<div id="contentToPrint">
your content...
</div>
</div>
</template>