0👍
Here is what I have right now, which works:
app.js:
import Vue from 'vue';
import AppLayout from './theme/Layout.vue';
import router from '../router';
import store from './vuex/index';
Vue.config.productionTip = false;
const app = new Vue ({
router,
...AppLayout,
store
});
export {app, router, store};
main.js:
import {app} from './app';
app.$mount('#app');
- [Vuejs]-Vue – Setting the width of a component dynamically
- [Vuejs]-Vue method to count duplicates in array
Source:stackexchange.com