0
I am currently studying Vuejs, I am using Ajax to request the API, and integrate the application, but I have read in different places about Axios. Why use Axios and not the "$. Ajax"? It’s more organized, safe or simply "standard".
0
I am currently studying Vuejs, I am using Ajax to request the API, and integrate the application, but I have read in different places about Axios. Why use Axios and not the "$. Ajax"? It’s more organized, safe or simply "standard".
1
The main "reason" for using the Axios is that it is agnostic to the system. That is, if you are using javascript, you can use Axios be a Vue, Node, angular, React project, whatever.
You learn Axios and can use it in any project. Unlike $.Ajax it only works if you install jQuery.
Browser other questions tagged ajax api vue.js axios
You are not signed in. Login or sign up in order to post.
$.ajax
is jQuery.– Diego Souza
It’s newer and less heavy
– Jorge Costa
I know it’s Jquery, but I’d like to know why, but thanks for the explanation
– Vasconcelosx
@Vasconcelosx or Axios is simpler, has the same purpose as $ajax, the recommended documentation.
– Marconi