Advertisement
GDolganov

main.js

Sep 16th, 2019
124
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 App from './App.vue'
  4. import Application from './components/Application.vue'
  5. import Home from './components/Home.vue'
  6. import Table from './components/Table.vue'
  7. Vue.use(Router)
  8.  
  9.  
  10.  
  11. const router = new Router({
  12.     routes: [{
  13.             path: '/',
  14.             name: 'home',
  15.             component: Home
  16.         },
  17.         {
  18.             path: '/application',
  19.             name: 'application',
  20.             component: Application
  21.         },
  22.         {
  23.             path: '/table',
  24.             name: 'table',
  25.             component: Table
  26.         }
  27.     ]
  28. })
  29.  
  30. new Vue({
  31.     el: '#app',
  32.     render: h => h(App),
  33.     router
  34. }) а
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement