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:
mzabriskie
2015-06-18 23:19:26 -06:00
parent 1d3dbd66bc
commit b7b0b5d6f5
+5 -2
View File
@@ -36,6 +36,11 @@ $ npm install axios
Tested to work with >=IE8, Chrome, Firefox, Safari, and Opera.
## Promises
axios depends on a native ES6 Promise implementation to be [supported](http://caniuse.com/promises).
If your environment doesn't support ES6 Promises, you can [polyfill](https://github.com/jakearchibald/es6-promise)
## Example
Performing a `GET` request
@@ -292,8 +297,6 @@ axios.get('/user?ID=12345');
axios is heavily inspired by the [$http service](https://docs.angularjs.org/api/ng/service/$http) provided in [Angular](https://angularjs.org/). Ultimately axios is an effort to provide a standalone `$http`-like service for use outside of Angular.
axios uses the [es6-promise](https://github.com/jakearchibald/es6-promise) polyfill by [Jake Archibald](https://github.com/jakearchibald). Until we [can use](http://caniuse.com/promises) ES6 Promises natively in all browsers, this polyfill is a life saver.
## License
MIT