This repository was archived by the owner on Dec 1, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork1.6k
pagekit/vue-resource
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The plugin forVue.js provides services for making web requests and handle responses using aXMLHttpRequest or JSONP.
- Supports thePromise API andURI Templates
- Supportsinterceptors 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)
You can install it viayarn orNPM.
$ yarn add vue-resource$ npm install vue-resource
Available onjsdelivr,unpkg orcdnjs.
<scriptsrc="https://cdn.jsdelivr.net/npm/vue-resource@1.5.3"></script>
{// GET /someUrlthis.$http.get('/someUrl').then(response=>{// get body datathis.someData=response.body;},response=>{// error callback});}
Details changes for each release are documented in therelease notes.
If you find a bug or want to contribute to the code or documentation, you can help by submitting anissue or apull request.
About
The HTTP client for Vue.js
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published