vuejs-images-viewer
v1.0.8
Published
images viewer it can rotate
Downloads
4
Maintainers
Readme
vuejs-images-viewer
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>