Skip to content

Instantly share code, notes, and snippets.

@jsdecena
Created August 31, 2019 03:55
Show Gist options
  • Select an option

  • Save jsdecena/daec31da26e44d5d0dd0d4f8275e52df to your computer and use it in GitHub Desktop.

Select an option

Save jsdecena/daec31da26e44d5d0dd0d4f8275e52df to your computer and use it in GitHub Desktop.
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'landing-page',
component: require('@/components/LandingPage').default
},
{
path: '/post',
name: 'post-create', // Create this!!
component: require('@/components/PostCreate').default
}
{
path: '*',
redirect: '/'
}
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment