Using fetch in Nuxt to fetch data from an API

preview_player
Показать описание
In Nuxt we can use the fetch hook to fetch data from an API inside our components or pages. In this video we take a simple product card and make it dynamic by filling it with data from an API
Рекомендации по теме
Комментарии
Автор

I find your videos very informative and well presented. Nuxt.js is an amazing framework that really makes it easy to build high-performance, modern websites.
This video allowed me to easily understand how to retrieve data from an API. And I use this method for my current project.

Thank you for this quality content! I highly recommend this video to anyone looking to learn more about Nuxt.js.

codeavecstephane
Автор

Great Video😇 Clear and on point explanation. Keep Going!

deekshajain
Автор

I just started using Nuxt in my new job and I'm so glad I've just found your channel - this vid was the clearest explanation I've seen 😍

solemnlyuptonogood
Автор

Can't wait for your NuxtJS + Apollo + Vuex combo =)

jllastrilla
Автор

Hi Debbie, maybe you can make a Nuxt3 video with useFetch?

Автор

you could add the `object-fit: cover;` for those images to fit more nicely in the specified height ;) (Thanks for the video series!!)

accionrebeldemusical
Автор

Can we have a tutorial on how to create an authentication system with Nuxtjs please?
I created a Rest API myself with Nodejs and MongDB with JWT with some research.
I have been researching nuxtjs authentication with API for a while now but a bit difficult to understand with their explanations.

I am new with vuejs framework

Thanks !!!

codeavecstephane
Автор

thanks for this tutorial though I am already familiar with the materials in this video. I use asyncData, nuxtServerInit a lot for server side render, but never use fetch, what's the differences between asyncData and fetch ???

maskman
Автор

Just wondering why you chose to use fetch here rather than AsyncData like you did in the previous video. Are they equivalent? When would you choose one over the other? Thanks.

simonhunt
Автор

Hello Debbie O'Brien
Can you suggest extension for nuxt dev? Thanks for your all video series

codetraveler
Автор

I dont understand what is the difference between native Vue async mounted() and async fetch(). Also I heard somewhere that fetch is not a good idea to use because of error handling.

camotobe
Автор

When generating static deployment for Netlify hosting Async Fetch does not work as the data won't be updated on Netlify when the backend (Strapi) is updated. Correct?

shanemur
Автор

Great video. Could you show us how to implement a skeleton loading page?

concrete
Автор

what extension are you using for rearranging items in script?

NatiqStories
Автор

Your product prop default will not resolve to an empty object because you are not defining an object literal, you are opening an empty block. () => {} is the same as () => { return void 0; } ... So, in order to take advantage of an arrow function's implicit return, you need to wrap it in parens () => ({})

jonathan
Автор

What's the difference between async asyncData and async fetch ???

Dhruvsaxena
Автор

How do I get the data from API without page reload?

remanbala
Автор

It seems like in vue these processes are so well built up and comprehensible, that these guy from nuxt just ruin this at the end!

MrMarcoAlvarado
welcome to shbcf.ru