According to the docs of route object, you have access to a $route
object from your components, which exposes what you need. In this case
//from your component
console.log(this.$route.query.test) // outputs 'yay'
More Related Contents:
- How to add external JS scripts to VueJS Components?
- How to get a URL parameter in Express?
- Accessing Vuex state when defining Vue-Router routes
- Can vue-router open a link in a new tab?
- What is ?
- Passing props with programmatic navigation Vue.js
- Vue.js – update router view
- Detect Back Button in Navigation Guards of Vue-Router
- How to pass an object as props with vue router?
- What should I do to use this webpacked JS library? [closed]
- Change URL parameters and specify defaults using JavaScript
- Vue.js dynamic images not working
- Vue.js 3 Event Bus
- [Vue warn]: Property or method is not defined on the instance but referenced during render
- Difference between the created and mounted events in Vue.js
- Filter list with Vue.js
- Is there any way to ‘watch’ for localstorage in Vuejs?
- how to fix ‘Access to XMLHttpRequest has been blocked by CORS policy’ Redirect is not allowed for a preflight request only one route
- VueJS/Typescript – Cannot find module ‘./components/Navigation’ or its corresponding type declarations
- Module not found: Error: Can’t resolve vue, path not correct
- Methods vs Computed in Vue
- Vue js error: Component template should contain exactly one root element
- How to use any icons with Nuxt or Vue?
- How do I hide the VueJS syntax while the page is loading?
- How to use Vuetify tabs with vue-router
- Styling Vuetify selectors
- How to disable ESLint in vue-cli?
- Vue.js unknown custom element
- Axios request giving getter setter methods instead of data queried
- What’s the correct way to pass props as initial data in Vue.js 2?