question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v-link don't work in active component

See original GitHub issue

I have a this router.map

router.map({
    '/': {
        component: Home,
        title: 'Обзор карты'
    },
    'places': {
        component: Places,
        title: 'Список мест',
    },
    'places/:placeId': {
        name: 'showPlace',
        component: Place,
        title: 'Просмотр места'
    }
});

And on places/1 i have a v-link

<a v-link="{ name: 'showPlace', params: { placeId: similarPlace.id } }" class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">Посмотреть</a>

And this edited a page-link, but <vue-router> don’t update.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
LinusBorgcommented, Oct 5, 2016

In that case, don’t use the §watch, set this in the route options of the component:

route: {
  canReuse: false
}
0reactions
LinusBorgcommented, Oct 5, 2016

Sorry, this is not a support forum. Further questions on the forum.vuejs.org or on stack overflow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

v-link-active on parent containing multiple v-links is not working
In my example on jsFiddle, the "v-link-active" class should be applied to the "Leads" menu item if any of the contained sub-menu items...
Read more >
Use 'active' state from React Router in Styled Components
As of react-router v4, you can style the active state of NavLink without any dependencies using activeClassName and Styled Components' ...
Read more >
PQ51193: VLINK NOT COMING UP - IBM
Virtual link is not comming active. . Problem occurs when the transit interface for the VLINK is a P2MP interface. When the HELLO...
Read more >
Link | Components - BootstrapVue
Property. (Click to sort ascending) Type. (Click to sort ascending) Default active Boolean false active‑class String append Boolean false
Read more >
HTML | <body> vlink Attribute - GeeksforGeeks
The HTML <body> vlink Attribute is used to specify a color of a visited link in a Document. Note : The HTML <body>...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found