Created
November 25, 2017 16:45
-
-
Save jasonbronson/a8616aff784ca0568e7af696146e63db to your computer and use it in GitHub Desktop.
Router Vue Example
This file contains hidden or 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 Router from 'vue-router' | |
Vue.use(Router) | |
export default new Router({ | |
routes: [ | |
{ | |
path: '/', | |
name: 'homescreen', | |
component: require('@/components/HomeScreen/HomeScreen').default | |
}, | |
{ | |
path: '/main', | |
name: 'main', | |
component: require('@/components/main').default | |
}, | |
{ | |
path: '*', | |
redirect: '/' | |
} | |
] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment