Using asyncData to fetch data from an API with Nuxt

Опубликовано: 09 Октябрь 2020
на канале: Debbie O'Brien
14,453
266

With Nuxt.js we can use asyncData to fetch data form our API before the page has been rendered. This can only be used in page components and not in individual components. Here we create a dynamic page and fetch the data using the route params

https://nuxtjs.org/guides/features/da...