The HTTP client for Vue.js
JavaScript HTML
Permalink
Failed to load latest commit information.
build update scripts Jul 1, 2016
dist v1.0.3 Sep 23, 2016
docs update docs Sep 4, 2016
src fix IE9 xdr issue #386 Sep 23, 2016
test update dev dependencies Sep 4, 2016
.gitignore add jasmine test Nov 6, 2015
.npmignore update docs Jan 17, 2016
LICENSE add license, see #287 Jun 12, 2016
README.md v1.0.3 Sep 23, 2016
bower.json v1.0.3 Sep 23, 2016
package.json v1.0.3 Sep 23, 2016

README.md

vue-resource Version License Downloads

The plugin for Vue.js provides services for making web requests and handle responses using a XMLHttpRequest or JSONP.

Features

  • Supports the Promise API and URI Templates
  • Supports interceptors for request and response
  • Supports latest Firefox, Chrome, Safari, Opera and IE9+
  • Compact size 14KB (5.3KB gzipped)

Installation

NPM

$ npm install vue-resource

Bower

$ bower install vue-resource

CDN

Available on jsdelivr, cdnjs or unpkg.

<script src="https://cdn.jsdelivr.net/vue.resource/1.0.3/vue-resource.min.js"></script>

Example

{
  // GET /someUrl
  this.$http.get('/someUrl').then((response) => {
    // success callback
  }, (response) => {
    // error callback
  });
}

Documentation

Changelog

Details changes for each release are documented in the release notes.

Contribution

If you find a bug or want to contribute to the code or documentation, you can help by submitting an issue or a pull request.

License

MIT