Vue Js and Pokeapi

Asked

Viewed 88 times

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".

  • $.ajax is jQuery.

  • It’s newer and less heavy

  • I know it’s Jquery, but I’d like to know why, but thanks for the explanation

  • 1

    @Vasconcelosx or Axios is simpler, has the same purpose as $ajax, the recommended documentation.

1 answer

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

You are not signed in. Login or sign up in order to post.