akulubala / vue-product-zoomer

Zoom Prodct Image, useful for e-shop website
http://www.yoohooworld.com/demo.html
MIT License
289 stars 69 forks source link

Cannot import locally #49

Closed tduccuong closed 4 years ago

tduccuong commented 5 years ago

Hi,

thanks for nice work!

But I cannot import the component locally. Always get 'template or rendered function not defined' error... I hade to import it in my main app.js and Vue.use(ProductZoomer) for it to work.

Could u pls help me on that? Thanks!

akulubala commented 4 years ago

@tduccuong ,you don't need import this from app.js, from your template, just write this three-line, it's the same:

import Vue from 'vue';
import ProductZoomer from 'vue-product-zoomer'
Vue.use(ProductZoomer)