|
|
3 лет назад | |
|---|---|---|
| .. | ||
| .circleci | 3 лет назад | |
| .github | 3 лет назад | |
| dist | 3 лет назад | |
| src | 3 лет назад | |
| test | 3 лет назад | |
| types | 3 лет назад | |
| .eslintignore | 3 лет назад | |
| .eslintrc.js | 3 лет назад | |
| LICENSE | 3 лет назад | |
| README.md | 3 лет назад | |
| package.json | 3 лет назад | |
| yarn.lock | 3 лет назад | |
The plugin for Vue.js provides services for making web requests and handle responses using a XMLHttpRequest or JSONP.
You can install it via yarn or NPM.
$ yarn add vue-resource
$ npm install vue-resource
Available on jsdelivr, unpkg or cdnjs.
<script src="https://cdn.jsdelivr.net/npm/vue-resource@1.5.1"></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.