pass query and params in vue router code example
Example 1: query params vuejs
http://localhost:8000?name=John&email=john@gmail.com
parameters = this.$route.query
console.log(parameters)
name = this.$route.query.name
console.log(name)
Example 2: how to send query parameters in url vuejs
// with query, resulting in /register?plan=private
router.push({ path: 'register', query: { plan: 'private' }})