Skip to content

Instantly share code, notes, and snippets.

@l08084 l08084/index.js
Created Feb 20, 2019

Embed
What would you like to do?
vue-routerの設定ファイル
import Vue from 'vue'
import Router from 'vue-router'
import Dashboard from '../components/pages/Dashboard'
import Heroes from '../components/pages/Heroes'
import HeroDetail from '../components/pages/HeroDetail'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
component: Dashboard
},
{
path: '/heroes',
component: Heroes
},
{
path: '/dashboard',
component: Dashboard
},
{
path: '/detail/:id',
name: 'Detail',
component: HeroDetail
}
]
})
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.