2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

Updating README

This commit is contained in:
Matt Zabriskie
2014-08-28 12:37:13 -06:00
parent cec3482ff7
commit 960a583d56
+10 -6
View File
@@ -9,12 +9,12 @@ Performing a `GET` request
```js
// Make a request for a user with a given ID
axios.get('/user?ID=12345')
.success(function (response) {
console.log(response);
})
.error(function (response) {
console.log(response);
});
.success(function (response) {
console.log(response);
})
.error(function (response) {
console.log(response);
});
// Optionally the request above could also be done as
axios.get('/user', {
@@ -156,6 +156,10 @@ Using npm:
$ npm install axios
```
## Compatability
Tested to work with >=IE8, Chrome, Firefox, Safari, and Opera.
## Attribution
axios is heavily inspired by Angular's $http service.