Closed lmlong-huynh closed 5 years ago
Sure:
import Component1 from 'Component1.vue';
import Component2 from 'Component1.vue';
const store = new Vuex(...);
Component1.store = store;
Component2.store = store;
Vue.customElement('my-component1', Component1);
Vue.customElement('my-component2', Component2);
Regards.
Hey, so I have two diffent custom-element hosted on a main app. Is it possible to let my two custom-elements using the same store as the main app?