Skip to content

Instantly share code, notes, and snippets.

@duwaljyoti
Last active March 7, 2018 14:49
Show Gist options
  • Save duwaljyoti/127a988dc43b6560a1179c49bc7b8e89 to your computer and use it in GitHub Desktop.
Save duwaljyoti/127a988dc43b6560a1179c49bc7b8e89 to your computer and use it in GitHub Desktop.
import Vue from 'vue';
import Vuex from 'vuex';
import VueRouter from 'vue-router';
import routes from './routes'; // user routes
import store from './store'; // user store
Vue.use(VueRouter);
Vue.use(Vuex);
// injecting the user routes to the vue router instance.
const router = new VueRouter({
routes,
});
//creating a new vue instance
const userApp = new Vue({
router,
store,
});
//manually starting the mounting of unmounted vue instance.
userApp.$mount('#app');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment