To send data to another page in Nuxt.js, you can use routing parameters.
First, define the parameter in the URL of the target page by adding a colon and a name for the parameter in the page's route definition in the Nuxt.js config file (nuxt.config.js) or in the page's .vue file:
index.tsx136 chars10 lines165 chars9 lines
Then, when navigating to that page from another page, use the router.push method and pass the data as an object in the params option:
245 chars18 lines
In the target page, you can access the data passed in the params option using this.$route.params:
226 chars10 lines
gistlibby LogSnag