I am using named views inside my vue-router. Inside of both components I need to get the props.
The following codes shows the definition of the routes. The first entry is not working. Inside the component the props will stay undefined. So the Breadcrumb and the Collection component is getting no property
The second example works, because there is just one component:
const routes = [
{
path: '/:cid',
name: 'collection',
props: true,
components: {
default: Collection,
breadcrumb: Breadcrumb
}
},
{
path: '/:cid/:iid',
name: 'item',
props: true,
component: Item
},
]
I think the the props property is just working, when there is just one component.
I didn't find a solution inside the documentation so any help is welcome.