any-http-angular

AnyHTTP adapter for AngularJS

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Jan 23, 2015Jan 23, 2015Minified + gzip package size for any-http-angular in KB

Readme

AnyHTTP adapter for AngularJS

AnyHTTP adapter for the AngularJS framework.

Usage

This adapter is implemented as an ES6 module which can be installed with jspm and loaded via SystemJS as follows:

import 'any-http-angular';

import angular from 'angular';

var mod = angular.module('example', ['anyHttp']);

mod.factory('exampleFactory', ['anyHttp', function(anyHttp) {
  anyHttp.
    get('https://example.com').
    then(({body, headers}) => {
      console.log("body:", body);
      console.log("content-type:", headers['Content-Type']);
    });
}]);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.