0.1.2 • Published 4 years ago

vue-simple-print v0.1.2

Weekly downloads
15
License
-
Repository
github
Last release
4 years ago

VueSimplePrint

This is a simple directive to print html section with vue.

DEMO

Try the 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>