Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Async Data with Nuxt.js

Fetch Async Data with Axios

In this lesson, we will switch to axios, which is a full-blown, promise-based HTTP client that both works in the browser and the Node environment.

Since we'll be pre-rendering our website in this course, Nuxt needs an HTTP client that also works server side.

Install axios with yarn

yarn add axios

Install axios with npm

npm install axios