@controlla/cli
Version:
Command line interface for rapid Controlla projects development
26 lines (21 loc) • 567 B
JavaScript
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const router = new Router({
routes: [
{
path: '/',
name: 'home',
// route level code-splitting
// this generates a separate chunk (home.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import(/* webpackChunkName: "home" */ '@/views/Home.vue'),
meta: {
title: Vue.i18n.translate('strings.home', null)
}
}
]
})
// It's required for VueAuth
Vue.router = router
export default router