Vuejs <router-link> same route but different parameter

Asked

Viewed 161 times

2

Guys I have the following component :

<router-link :to="{name: 'menu1-mostrar', params: {atr: var1}}"> Menu1</router-link>
<router-link :to="{name: 'menu1-mostrar', params: {atr: var2}}"> Menu2</router-link>

I’m not getting the component to update automatically. I can only update by clicking on another menu item that has a different route.

Note that menu 1 and menu 2 use the same route. When I click on menu 1 and then if I want to click on menu 2 it does not call the route again. I have to call for example the menu 3 that uses different route and then in the menu 2 I need the route always to be called independent if I’m already on it

  • Can you explain better what "user story" is? Or whatever you do on the page and what you expect to happen?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.