Skip to content
Fatih Koca edited this page Nov 27, 2019 · 27 revisions

vuejs-ajax

Travis Build Version Downloads

It is a XHR plugin that works in specific features for Vue.js 2.x and and above versions. It has many similar features with jQuery's ajax() and Angular's $http().

It allows you to write more tidy code by solving many of the most common features used by developers in the core.
Some examples:

  • One of the most common problems is the problem of sending dublicate requests at the same time. Vue.js Ajax solve it easily: preventDuplicate: true.
  • File uploading with Ajax (XMLHttpRequest) can sometimes require you to write extra code. But it's very simple to do it with Vue.js Ajax: fileInputs: [FILE_INPUT_ELEMENT_1, FILE_INPUT_ELEMENT_2, ...]
  • There is also ComponentShifter which solves a different task. With componentShifter() you can load (with Vue.ajax) and render your Vue template (html) in your application by dynamic & async Vue.component(). You can also add components and run them nested.
Clone this wiki locally