Skip to content

luisDanielRoviraContreras/vue-resource

This branch is 1 commit ahead of, 19 commits behind pagekit/vue-resource:develop.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

819ff2f · May 7, 2018
Mar 26, 2018
Jul 3, 2017
Dec 20, 2017
Mar 3, 2018
Mar 2, 2018
Mar 2, 2018
Oct 3, 2017
Mar 16, 2018
Dec 20, 2017
Dec 20, 2017
Nov 6, 2015
Jan 17, 2016
Apr 6, 2017
May 7, 2018
Mar 3, 2018
Mar 26, 2018
Mar 26, 2018

Repository files navigation

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
# OR
$ npm install vue-resource

CDN

Available on jsdelivr, unpkg or cdnjs.

<script src="https://cdn.jsdelivr.net/npm/vue-resource@1.5.0"></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

About

The HTTP client for Vue.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.5%
  • TypeScript 4.4%
  • HTML 1.1%