|
7 年 前 | |
---|---|---|
.. | ||
.github | 7 年 前 | |
dist | 7 年 前 | |
src | 7 年 前 | |
test | 7 年 前 | |
.npmignore | 7 年 前 | |
LICENSE | 7 年 前 | |
README.md | 7 年 前 | |
package.json | 7 年 前 | |
yarn.lock | 7 年 前 |
The plugin for Vue.js provides services for making web requests and handle responses using a XMLHttpRequest or JSONP.
$ npm install vue-resource
$ bower install vue-resource
Available on jsdelivr, cdnjs or unpkg.
<script src="https://cdn.jsdelivr.net/vue.resource/1.3.1/vue-resource.min.js"></script>
{
// GET /someUrl
this.$http.get('/someUrl').then(response => {
// get body data
this.someData = response.body;
}, response => {
// error callback
});
}
Details changes for each release are documented in the release notes.
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.