Skip to content

Instantly share code, notes, and snippets.



Last active Jun 9, 2018
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';
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