I want to get the user ID, so I have a dropdown button =
list {{item.title}}
And this data:
My intention is to send the user ID. This way, I can actually get
viaroute.params.id
url: ''/user/function/structUser/${route.params.id}`'
Not working, what did I do wrong?
The template string only uses backticks, but your string uses both single quotes and backticks.
replacement value (
route.params.id
) refers to aroute
variable that appears to be undefined in your example. I think you want to accessthis.$route
, so the actual replacement should bethis.$route.params.id
items
The array should look like this:Demo
This is an example
Also, maybe try using it inside a
computed
as it may not be a computed property.