[Vuejs]-Nuxt JS dynamic param on nested page

-1👍

use the [ ] syntax

pages/landing/[paramName].vue

further read
https://v3.nuxtjs.org/guide/directory-structure/pages#dynamic-routes

-1👍

If 123 is the id, you need to save the file as _id.vue then you can get the value of id using this.$route.params.id

Edit: You directory structure will be pages/landing/_id.vue

Leave a comment