Answers for "vue router set path name based on params"

5

query params vuejs

http://localhost:8000?name=John&[email protected]

 parameters = this.$route.query
 console.log(parameters)

 name = this.$route.query.name
 console.log(name)
Posted by: Guest on November-13-2020
0

vue router name

router.push({ name: 'user', params: { userId: 123 }})
Posted by: Guest on August-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language