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

Master Vue.js with Vue School Premium

$25 / month

Async Data with Nuxt.js

Master Vue.js with Vue School Premium

$25 / month

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