Last active
December 26, 2017 02:31
-
-
Save sandi-racy/5b9b45b246448632b10870c28fe4e989 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) | |
window.cosmicJsConfig = { | |
bucket: { | |
slug: 'yourSlug' | |
} | |
} | |
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