I haven’t found a good way to do this. Basically the props that you can pass as params, end up getting displayed in the url as resource or queries.

The above code makes the url look like “url/id/1”

What if i want to pass multiple props like “id” and " name" through router-link but don’t want the url to have the “name” field?

Hopefully, someone can answer this. Thank you.

You are viewing a single thread.
View all comments
1 point
*

The code isn’t visible for some reason on lemmy. I’m not sure if it’ll be in this comment. Okay it wasn’t. Removing brackets to see if it works now.

router-link :to=name “url”, params:id:1 router-link

permalink
report
reply

Community stats

  • 1

    Monthly active users

  • 12

    Posts

  • 33

    Comments

Community moderators