Skip to content

argo-rest/any-http-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']);
    });
}]);

About

AnyHTTP adapter for AngularJS

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors