Closed ajmas closed 3 years ago
Okay, turns out we have to follow the documentation by the letter, since using it as above does not work. So, during load:
import panZoom from 'vue-panzoom';
Vue.use(panZoom);
Alternatives such as Vue.component()
don't work either.
using Vue.use()
registers the component globally, so there's no need to do Vue.component()
. If you insist on using it locally in your component without Vue.use()
, kindly refer to #25
also, by default the component is registered as panZoom
and not pan-zoom
as you have it in your snippet. You can change this by doing
Vue.use(panZoom, {componentName: 'pan-zoom'});
I am really not sure what I am doing wrong, but I am getting the following error when using
vue-panzoom
1.1.3 with a Vue 2 project (2.6.12):The code I am using: