Skip to content

Instantly share code, notes, and snippets.

@praneetloke
Last active June 9, 2018 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praneetloke/913d283bd4c6b1eb60b321ec8710b2d2 to your computer and use it in GitHub Desktop.
Save praneetloke/913d283bd4c6b1eb60b321ec8710b2d2 to your computer and use it in GitHub Desktop.
The default router created by the vue-cli
import Vue from 'vue';
import Router from 'vue-router';
import HelloWorld from '@/components/HelloWorld';
import TestComponent from '@/components/TestComponent';
Vue.use(Router);
export default new Router({
routes: [
{
path: '/',
name: 'HelloWorld',
component: HelloWorld,
},
{
path: '/test',
name: 'TestComponent',
component: TestComponent,
},
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment