vue-resource
TypeScript icon, indicating that this package has built-in type declarations

1.5.3 • Public • Published

vue-resource Build Downloads jsdelivr Version License

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+
  • Supports Vue 1.0 & Vue 2.0
  • Compact size 14KB (5.3KB gzipped)

Installation

You can install it via yarn or NPM.

$ yarn add vue-resource
$ npm install vue-resource

CDN

Available on jsdelivr, unpkg or cdnjs.

<script src="https://cdn.jsdelivr.net/npm/vue-resource@1.5.3"></script>

Example

{
  // GET /someUrl
  this.$http.get('/someUrl').then(response => {

    // get body data
    this.someData = response.body;

  }, 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.5.352,200latest

Version History

VersionDownloads (Last 7 Days)Published
1.5.352,200
1.5.22,019
1.5.123,768
1.5.01,117
1.4.087
1.3.6174
1.3.5981
1.3.41,145
1.3.38
1.3.22
1.3.1126
1.3.07
1.2.1114
1.2.078
1.1.27
1.1.11
1.1.02
1.0.3274
1.0.23
1.0.11
1.0.03
0.9.31,047
0.9.22
0.9.13
0.9.05
0.8.023
0.7.4243
0.7.35
0.7.22
0.7.12
0.7.013
0.6.125
0.6.04
0.5.111
0.5.02
0.1.1783
0.1.161
0.1.152
0.1.142
0.1.132
0.1.121
0.1.111
0.1.101
0.1.91
0.1.81
0.1.71
0.1.61
0.1.52
0.1.41
0.1.31
0.1.21

Package Sidebar

Install

npm i vue-resource

Weekly Downloads

83,606

Version

1.5.3

License

MIT

Unpacked Size

180 kB

Total Files

54

Last publish

Collaborators

  • yyx990803
  • steffans