how to use vue-router params
问题 I'm new to vue now working with its router. I want to navigate to another page and I use the following code: this.$router.push({path: '/newLocation', params: { foo: "bar"}}); Then I expect it to be on the new Component this.$route.params This doesn't work. I also tried: this.$router.push({path: '/newLocation'}); this.$router.push({params: { foo: "bar"}}); I've inspected the source code a bit and noticed this property gets overwritten with new object {}. I'm wondering is the params use is