Skip to content

Using route function inside .vue components #635

Closed Answered by bakerkretzmar
miglm asked this question in Q&A
Discussion options

You must be logged in to vote

Inside setup() or <script setup> you have to retrieve the route function manually, in your case since you're using the Vue plugin you can just add const route = inject('route'); and that'll work.

See #588 (reply in thread) and #564 (comment).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bakerkretzmar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants