Relative Content

Tag Archive for vue.jsvuejs3

How do I add a query parameter to a vue URL?

Suppose I am currently at a path like localhost:8080/#/some/path?a=b&b=c, and I want to create a string that contains the current URL but with the query parameter a is set to x:

Vue: different ways to get reactive value

I’m a bit confused about so many different ways of getting reactive value.
What’s the difference between prop.value, unref(prop) and toValue(prop)?
When should I use which method?

Add class on menu item when active

I want the menu to have a color when its active, I tried add isActive but then is displays on all the menus at the same time. I only want it on the one that is active.