Skip to content

Instantly share code, notes, and snippets.

@praneetloke

praneetloke/index.js

Last active Jun 9, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.