In vue.js route.js
[{path: "/path", name: "acomp_name", component: PathComp, props: { abc: {} }}]
comp.vue
<script>
...omitted_for_brevity,
methods: {
changeRoute(json_sample){
this.$router.push({name: "acomp_name", params: { abc: json_sample })
}
}
</script>
- Is there a way I can set the props which is an object to return json sample which is another object, like this that is can I set the value of props of the router in a push
- if indeed it is not supported in vue-router4 . what approach has been used or is being used to do this?