November 2017
Beginner to intermediate
398 pages
8h 42m
English
Let's add some routing to the app; we will have two pages--the dashboard with indicators and a page with buttons to generate fake data:
import Vue from 'vue' import VueRouter from 'vue-router' import ProductionDashboard from './components/ProductionDashboard.vue' import ProductionGenerator from './components/ProductionGenerator.vue' Vue.use(VueRouter) const routes = [ { path: '/', name: 'dashboard', component: ProductionDashboard }, { path: '/generate', name: 'generate', component: ProductionGenerator }, ] const router = new VueRouter({ mode: 'history', ...Read now
Unlock full access