SHARE
TWEET

Untitled

a guest Sep 21st, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import Item from './views/Item.vue'
  4. import List from './views/List.vue'
  5.  
  6. Vue.use(Router)
  7.  
  8. export default new Router({
  9.   mode: 'history',
  10.   base: process.env.BASE_URL,
  11.   routes: [
  12.     {
  13.       path: '/',
  14.       name: 'list',
  15.       component: List
  16.     },
  17.     {
  18.       path: '/item/:id',
  19.       name: 'item',
  20.       component: Item
  21.     }
  22.   ]
  23. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top