UNPKG

http-ng

Version:

a standalone angular.js $http service

39 lines (26 loc) 726 B
### http-ng [![NPM version](https://badge.fury.io/js/http-ng.png)](http://badge.fury.io/js/http-ng) [![Dependencies Status](https://david-dm.org/Treri/http-ng.png)](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