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

Commit

Permalink
Merge branch 'release/0.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
steffans committed Jun 24, 2016
2 parents 95451be + 063420e commit 2f951df
Show file tree
Hide file tree
Showing 46 changed files with 1,425 additions and 1,500 deletions.
31 changes: 21 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,46 @@
# vue-resource [![npm package](https://img.shields.io/npm/v/vue-resource.svg)](https://www.npmjs.com/package/vue-resource)

Resource plugin for Vue.js.
The plugin for [Vue.js](http://vuejs.org) provides services for making web requests and handle responses using a [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) or JSONP.

The plugin provides services for making web requests and handle responses using a XMLHttpRequest or JSONP.
## Features

## Setup
- Supports the [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) API and [URI Templates](https://medialize.github.io/URI.js/uri-template.html)
- Supports [interceptors](docs/http.md#interceptors) for request and response
- Supports latest Firefox, Chrome, Safari, Opera and IE9+
- Compact size 12KB (4.5KB gzipped)

### Webpack/Browserify
## Installation

Add `vue` and `vue-resource` to your `package.json`, then `npm install`, then add these lines in your code:
### NPM
```
$ npm install vue-resource
```

```js
var Vue = require('vue');
var VueResource = require('vue-resource');
### Bower
```
$ bower install vue-resource
```

Vue.use(VueResource);
### CDN
Available on [jsdelivr](https://cdn.jsdelivr.net/vue.resource/0.9.0/vue-resource.min.js), [cdnjs](https://cdnjs.com/libraries/vue-resource) or [npmcdn](https://npmcdn.com/[email protected]).
```html
<script src="https://cdn.jsdelivr.net/vue.resource/0.9.0/vue-resource.min.js"></script>
```

## Documentation

- [Configuration](docs/config.md)
- [HTTP Requests/Response](docs/http.md)
- [Creating Resources](docs/resource.md)
- [Code Recipes](docs/recipes.md)

## Changelog

Details changes for each release are documented in the [release notes](https://github.com/vuejs/vue-resource/releases).

## Contribution

If you find a bug or want to contribute to the code or documentation, you can help by submitting an [issue](https://github.com/vuejs/vue-resource/issues) or a pull request.
If you find a bug or want to contribute to the code or documentation, you can help by submitting an [issue](https://github.com/vuejs/vue-resource/issues) or a [pull request](https://github.com/vuejs/vue-resource/pulls).

## License

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vue-resource",
"main": "dist/vue-resource.js",
"description": "A web request service for Vue.js",
"version": "0.8.0",
"version": "0.9.0",
"homepage": "https://github.com/vuejs/vue-resource",
"license": "MIT",
"ignore": [
Expand Down
2 changes: 1 addition & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rollup.rollup({
entry: 'src/index.js',
plugins: [
babel({
presets: ['es2015-rollup']
presets: ['es2015-loose-rollup']
})
]
})
Expand Down
Loading

0 comments on commit 2f951df

Please sign in to comment.