AngularJS $http agent adapter for theon based API clients
Works with AngularJS +1.0 and theon +0.1.
Via npm
npm install theon-angular-adapterVia Bower
bower install theon-angular-adapterOr loading the script remotely
<script src="//cdn.rawgit.com/theonjs/angular-adapter/master/angular-adapter.js"></script>- Chrome >= 5
- Firefox >= 3
- Safari >= 5
- Opera >= 10
- IE >= 9
Load the module as dependency of your application
var app = angular.module('app', ['theon.adapter'])Main service to creating new Resilient HTTP clients
app.config(function ($theonAdapter) {
// Configure theon to use the agent adapter
theon.agents.set($theonAdapter)
})theon API documentation.
theon HTTP agent adapter.
Only node.js is required for development
Clone the repository
$ git clone https://github.com/theonjs/theon-angular-adapter.git && cd theon-angular-adapterInstall dependencies
$ npm install$ bower installGenerate browser bundle source
$ make browserRun tests
$ make testMIT © Tomas Aparicio