🚧 PLEASE NOTE: An updated version of this course is available! see the The Complete Guide to Data Fetching in Nuxt course. This course is outdated!
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
