Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3.  
  4. import Dashboard from '../components/pages/Dashboard'
  5. import Heroes from '../components/pages/Heroes'
  6. import HeroDetail from '../components/pages/HeroDetail'
  7.  
  8. Vue.use(Router)
  9.  
  10. export default new Router({
  11. routes: [
  12. {
  13. path: '/',
  14. component: Dashboard
  15. },
  16. {
  17. path: '/heroes',
  18. component: Heroes
  19. },
  20. {
  21. path: '/dashboard',
  22. component: Dashboard
  23. },
  24. {
  25. path: '/detail/:id',
  26. name: 'Detail',
  27. component: HeroDetail
  28. }
  29. ]
  30. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement