Skip to content

Instantly share code, notes, and snippets.

@sandi-racy sandi-racy/script.js
Created Dec 26, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.