Problems when passing additional parameters with router-view

0

I'm using vue route and I have the following link:

<router-link :to="{name:'calendars', params:{ year:c.year, id:c.id}}">
    Calendario
</router-link>

The route for this link is:

{
    name: 'calendars',
    path: '/calendario/:year',
    props: true,
    component: require('./components/user/views/Calendar')
},

my problem is that the url shows it to me well that it is calendar / 2018 for example, but I also need to use the id in that component and it does not happen to me and probe props but it does not work either (something I'm doing wrong)

    
asked by Juan Pablo B 09.08.2018 в 00:55
source

0 answers