2 months ago

Query params in vuejs

Posted 2 months ago by MattB

I'm confused about how to implement query params and how to react to them. I want to set up a vuejs route like this:

    path: '/home/video/usertype?=usertypehere',
    name: 'videochat',
    component: VideoChat

and then when the page is loaded, grab the user type in the view and make changes to it based on the URL. I have 2 questions I need help with please:

A: Is this the right way to set up the URL B: How would I grab that query param and use it in the Vue component?

Please sign in or create an account to participate in this conversation.