How get query parameter in Vue

Last Updated: May 18, 2018
Vue Basic
First Project
Vue data binding
Binding Style
REST API
Communication
Routing
Forms
Validation
State
Authentication
Animation
Transitions

If you have url something like this htttp://mysite.com/products?page=2#vendor/2 how do you get the vendor id

You can use the following code

$this.route.params.id