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.

Loading Sandbox...
Edit this page on GitHub Updated at Fri, Oct 22, 2021