0👍
This was the directory structure I needed:
pages/
--| objects/
----| _id/
------| add-comment.vue
----| _id.vue
which results in a nested route config:
routes: [{
path: "/objects/:id?",
component: _45173a6a,
name: "objects-id"
children: [{
path: "add-comment",
component: _14a12353,
name: "object-id-add-comment"
}],
},
...
- [Vuejs]-Convert Laravel signed route that pushes data to signed route with Vue component that pulls data
- [Vuejs]-How to pass data into Vue instance so that subsequent updates are reflected?
Source:stackexchange.com