npm.io
1.0.8 • Published 8 years ago

vuejs-images-viewer

Licence
ISC
Version
1.0.8
Deps
3
Vulns
3
Weekly
0

vuejs-images-viewer

Build Status NPM version

Installation

npm install vuejs-images-viewer --save

Browser

Include the script file, then install the component with Vue.use(ImagesViewer); e.g.:

<!--Plugin!-->
<script type="text/javascript" src="node_modules/vuejs-images-viewer/dist/app.js"></script>
<!--Template!-->
<script type="text/javascript" src="node_modules/vuejs-images-viewer/dist/app.min.js"></script>
<script type="text/javascript">
  Vue.use(ImagesViewer);
</script>
Module
import imagesViewer from 'vuejs-images-viewer';
const app = new Vue({
    el: '#app',
    components: {
        'images-viewer': imagesViewer
    }
});

Usage

Once installed, it can be used in a template as simply as:

<images-viewer></images-viewer>

Keywords