How to dynamically add a parameter to the route (nuxt)?
Hello. In the pages folder has the following structure:
When moving along this route are drawn 10 cards, the page header - pagination. When you click on the second page I draw 10 cards, but the route is not reflected. Nuxt routes on the structure in the Pages folder, I don't understand how to add a parameter to the route, without changing the folder structure in the pages. How do I add the route, for example, page=n, where n = current page that the address was: ../resume/list/page=n, thank you
Still in the dock described https://ru.nuxtjs.org/guide/nested-routes/
Create a file _ page.vue and it will be called every time when the link to resume/list/page=n in receive the passed parameter n, and draw th there wanted
Renee63 answered on March 23rd 20 at 19:24
Another option to add a get parameter, for example /resume/list?page=2