Last active
June 9, 2018 17:07
-
-
Save praneetloke/913d283bd4c6b1eb60b321ec8710b2d2 to your computer and use it in GitHub Desktop.
The default router created by the vue-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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