vue router dynamic route code example
Example: vue router url string
const resolved = this.$router.resolve({
name: 'SomeRouteName',
params: { id: item.id }
})
resolved.href // '/some-route-name/:id'
const resolved = this.$router.resolve({
name: 'SomeRouteName',
params: { id: item.id }
})
resolved.href // '/some-route-name/:id'