vue router add params code example
Example 1: vue router optional param
{
path: '/offers/:member?',
...
},
Example 2: vuejs router params
<router-link :to="{ name: 'movie', params: { id: item.id } }">{{ item.title }}</router-link>
{
path: '/offers/:member?',
...
},
<router-link :to="{ name: 'movie', params: { id: item.id } }">{{ item.title }}</router-link>