You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This do not work: VueTidyRoutes.route('/campaign', { component: () => import('./views/TheCampaignLayout.vue'), children: { '/example-base': { component: () => import(./templates/example-base/App.vue) } } })
And also
This works: VueTidyRoutes.route('/campaign').child('example-base', { component: () => import(./templates/example-base/App.vue), children: ExampleBaseTemplateRoutes })
This do not work VueTidyRoutes.route('/campaign').child('/example-base', { component: () => import(./templates/example-base/App.vue), children: ExampleBaseTemplateRoutes })
Please update document, this typo has eaten me a day.
The text was updated successfully, but these errors were encountered:
Thanks for your report! I just published v0.1.4 fixing this and now it will work.
shocklinbaubau
changed the title
Document misleading: child/children name should remove '/'
Setting child&children path '/childpath' will not work but works without '/'
Feb 4, 2019
When I need a path: /campaign/example-base
This works:
VueTidyRoutes.route('/campaign', { component: () => import('./views/TheCampaignLayout.vue'), children: { 'example-base': { component: () => import(
./templates/example-base/App.vue) } } })
This do not work:
VueTidyRoutes.route('/campaign', { component: () => import('./views/TheCampaignLayout.vue'), children: { '/example-base': { component: () => import(
./templates/example-base/App.vue) } } })
And also
This works:
VueTidyRoutes.route('/campaign').child('example-base', { component: () => import(
./templates/example-base/App.vue), children: ExampleBaseTemplateRoutes })
This do not work
VueTidyRoutes.route('/campaign').child('/example-base', { component: () => import(
./templates/example-base/App.vue), children: ExampleBaseTemplateRoutes })
Please update document, this typo has eaten me a day.
The text was updated successfully, but these errors were encountered: