http-ng
Version:
a standalone angular.js $http service
39 lines (26 loc) • 726 B
Markdown
### http-ng [](http://badge.fury.io/js/http-ng) [](https://david-dm.org/Treri/http-ng)
A standalone angular.js $http service for browsers.
### Install
```
npm install http-ng
```
### Dependences
- Promise
### APIs
see angular.js [`$http`](https://docs.angularjs.org/api/ng/service/$http)
### Usage
```js
import http from 'http-ng'
http.get('/url', {
params: {
key: 'value'
}
}).then(function(res){
console.log(res.data);
});
```
### Related
- [`cachefactory-ng`](https://github.com/Treri/cacheFactory)
- [`http-ng-loading-bar`](https://github.com/Treri/http-ng-loading-bar)
### License
MIT