Skip to content

Instantly share code, notes, and snippets.

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

What would you like to do?
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'
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.