Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

pagekit/vue-resource

develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
June 14, 2021 13:48
July 3, 2017 14:47
December 29, 2018 14:02
June 14, 2021 14:02
March 2, 2018 21:54
December 29, 2018 14:02
March 16, 2018 17:52
December 29, 2018 14:02
December 20, 2017 11:10
December 20, 2017 11:10
November 6, 2015 17:52
January 17, 2016 12:36
April 6, 2017 11:40
June 14, 2021 14:02
June 14, 2021 14:02
June 14, 2021 14:02
June 14, 2021 13:48

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