How to Use Axios to Make HTTP Requests in Vue.js

John Au-Yeung
DataSeries
Published in
15 min readNov 20, 2019

--

HTTP requests are made in almost all front end web apps. They are needed to communicate with back end to send and receive data. Vue.js apps are no different.

However, it doesn’t come with a HTTP client like Angular does, so we need to add our own. Axios is an easy to use HTTP client that many people use in their apps. It supports basic requests like GET, POST, PUT and DELETE requests. You can send headers with it, and also you can intercept the request and response to do something to something to all HTTP requests before it’s sent, or handle the…

--

--