-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation doc about using @click with a router-link #1188
Comments
Hmm after checking the src of <router-link @click="foo"/> |
I haven't checked further but it can be useful to transform it into a functional component if possible. |
Closing as we are making the router-link a functional component in #2029 |
Following #650 . Sometimes we want to use a router-link component to benefit from its visited state or other things but manually handle the
@click
and it's necessary to usenative
. Even though it's said on the vue docs, it's better to repeat ourselves a bitATM there's no place on the docs where we mention the
@click
with a router-link so I think we could add a little note at the bottom of : https://router.vuejs.org/en/api/router-link.htmlThe text was updated successfully, but these errors were encountered: