Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import Vue from 'vue'
- import Router from 'vue-router'
- import Item from './views/Item.vue'
- import List from './views/List.vue'
- Vue.use(Router)
- export default new Router({
- mode: 'history',
- base: process.env.BASE_URL,
- routes: [
- {
- path: '/',
- name: 'list',
- component: List
- },
- {
- path: '/item/:id',
- name: 'item',
- component: Item
- }
- ]
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement