Dynamic Pages
Using dynamic pages to fetch data from an API and populate those pages
In this example:
pages/_slug.vue
shows data coming from the route params.
pages/index.vue
fetches our mountains from our API.
pages/_continent/_mountain.vue
shows the detail page for each mountain in each continent.
Learn more in the Directory Structure book in the pages chapter.
Loading Sandbox...
Editer cette page sur GitHub
Mise à jour le Mon, July 12, 2021