The default router created by the CLI
import Vue from 'vue'; | |
import Router from 'vue-router'; | |
import HelloWorld from '@/components/HelloWorld'; | |
Vue.use(Router); | |
export default new Router({ | |
routes: [ | |
{ | |
// this component is loaded when the site is loaded first. '/' represents the root-URL | |
path: '/', | |
// just a name for this particular route | |
name: 'HelloWorld', | |
// the actual component that would be loaded when the user navigates to the root-URL. i.e., loads the webpage | |
component: HelloWorld | |
}, | |
], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment