Closed ujjwalguptaofficial closed 5 years ago
import Main from './Main.vue';
import store from './store';
const MainComponent = new Main().$options
MainComponent.store = store
Vue.customElement('my-app', MainComponent);
or similar usage usage should work fine. Feel free to comment if something is not working. Regards!
I was able to convert my app into custom component by using below code -
Here Main is component & Main has multiple nested child components. but dont know where to add the store.
Here is the initiate code -
please let me know. THanks.