Async Data with Nuxt.js (Nuxt 2)
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

🚧 NOTICE: You are watching a Vue.js 2 lesson

The asyncData method and the context

Nuxt.js has a special method called asyncData that we have to use when we're rendering our application on the server-side. In this lesson, we'll learn how to fetch data with asyncData and also how to access our route parameters and other goodies through the context object.

If you want to learn more about setting metadata in Nuxt, please see our Nuxt.js SEO and Meta Tags from our Nuxt.js Fundamentals course