Skip to content

Instantly share code, notes, and snippets.

@duwaljyoti
Last active March 9, 2018 00:00
Show Gist options
  • Save duwaljyoti/90ebd7d5b40df9a381abe6edc4ba742f to your computer and use it in GitHub Desktop.
Save duwaljyoti/90ebd7d5b40df9a381abe6edc4ba742f to your computer and use it in GitHub Desktop.
import routes from './routes'; // user routes
import store from './store/index'; // user store
// injecting note routes to the vue router instance.
const router = new VueRouter({
routes,
});
// injecting router and store instance to the newly created vue object.
const NoteApplication = new Vue({
router,
store,
});
// manually mounting an unmounted vue instance.
NoteApplication.$mount('#app');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment