import Vue from 'vue'; import VueRouter from 'vue-router'; import VueBreadcrumbs from 'vue-2-breadcrumbs'; Vue.use(VueRouter); Vue.use(VueBreadcrumbs); const Feeds = {template: '
'}; const Biz = {template: '

Biz

'}; const Foo = {template: '

Foo

'}; const Bar = {template: '

Bar

'}; const router = new VueRouter({ routes: [ {path: '/', redirect: '/feeds'}, { path: '/feeds', component: Feeds, meta: { breadcrumb: 'Feeds' }, children: [ { path: '', component: Biz }, { path: 'foo', component: Foo, meta: { breadcrumb: 'foo' } }, { path: 'bar', component: Bar, meta: { breadcrumb: 'bar' } } ] } ] }); new Vue({ router, template: `
` }).$mount('#app');