vue-enlargeable-image
vue-enlargeable-image copied to clipboard
Nuxt
Great repo! The best enlarge package out there. Thank you!
I was struggling a bit with registering on Nuxt but finally made it:
//enlarge.js
import Vue from "vue";
import EnlargeableImage from "@diracleo/vue-enlargeable-image";
Vue.config.productionTip = false;
// Globally register your component
Vue.component("enlargeable-image", EnlargeableImage);
//nuxt.config.js
/*
** Plugins to load before mounting the App
*/
plugins: [
...
{ src: "@/plugins/enlarge", mode: "client", ssr: false },
....
],