Created
December 26, 2017 07:33
-
-
Save sandi-racy/09c2410256fafe2dd6ebb32b53d06e78 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 App from './components/App.vue' | |
import Home from './components/Home.vue' | |
import Technologies from './components/Technologies.vue' | |
import Projects from './components/Projects.vue' | |
import OpenSources from './components/OpenSources.vue' | |
const routes = [ | |
{ path: '/', component: Home }, | |
{ path: '/technologies', component: Technologies }, | |
{ path: '/projects', component: Projects }, | |
{ path: '/open-sources', component: OpenSources } | |
] | |
const router = new VueRouter({ | |
routes | |
}) | |
new Vue({ | |
router, | |
render: h => h(App) | |
}).$mount('#app') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment