Vue resource tolerious

The HTTP client for Vue.js

Version: 1.2.1 Updated: 11/12/2020

By: pagekit License: MIT

Downloads Last 30 Days: 7

Install

npm i vue-resource-tolerious
yarn add vue-resource-tolerious

Repository: https://github.com/pagekit/vue-resource

CDNs

bundle.run: https://bundle.run/vue-resource-tolerious

jsDelivr: https://cdn.jsdelivr.net/npm/vue-resource-tolerious

unpkg: https://unpkg.com/vue-resource-tolerious

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.2.1/vue-resource.min.js"></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

Categories: Vue js