Advertisement
Guest User

Untitled

a guest
Apr 30th, 2018
1,001
0
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 Home from './views/Home.vue'; // Errors are reported here
  4. import About from './views/About.vue'; // And here
  5.  
  6. Vue.use(Router);
  7.  
  8. export default new Router({
  9.   routes: [
  10.     {
  11.       path: '/',
  12.       name: 'home',
  13.       component: Home,
  14.     },
  15.     {
  16.       path: '/about',
  17.       name: 'about',
  18.       component: About,
  19.     },
  20.   ],
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement