Let say I have 2 plugins I want to use:
Bootstrap-Vue
& Vue Analytics
I would import like so
import BootstrapVue from 'bootstrap-vue'
import VueAnalytics from 'vue-analytics'
How would I use them if one has parameters?
Is this correct?
Vue.use(BootstrapVue, VueAnalytics, {
id: 'UA-12345678-9'
});
Don't overthink it. Just call Vue.use
twice.
Vue.use(BootstrapVue);
Vue.use(VueAnalytics, {
id: 'UA-12345678-9'
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With