import Vue from "vue" ; import Router from "vue-router" ; import Home from "./views/Home" ; const Demo = ( ) => import ( "./views/Demo" ) ; const GettingStarted = ( ) => import ( "./views/GettingStarted" ) ; Vue . use ( Router ) ; export default new Router ( { routes : [ { component : Home , name : "home" , path : "/" } , { component : GettingStarted , name : "getting-started" , path : "/getting-started" } , { component : Demo , name : "demo" , path : "/demo" } ] } ) ;