Created
August 6, 2020 14:42
-
-
Save simonjcarr/0ee4a680d7824cbfaceb70af07944e7b to your computer and use it in GitHub Desktop.
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 VueRouter from 'vue-router' | |
Vue.use(VueRouter) | |
import About from './components/About.vue' | |
import Hobbies from './components/Hobbies.vue' | |
const routes = [ | |
{ | |
path: "/about", | |
name: "About", | |
component: About | |
}, | |
{ | |
path: "/hobbies", | |
name: 'Hobbies', | |
component: Hobbies | |
} | |
] | |
const router = new VueRouter({ | |
routes | |
}) | |
export default router |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment