[Vuejs]-Simple Nested Dynamic Route

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"
    }],
},
...

Leave a comment