AngularJS $http agent adapter for theon based API clients
Works with AngularJS +1.0
and theon +0.1
.
Via npm
npm install theon-angular-adapter
Via Bower
bower install theon-angular-adapter
Or 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-adapter
Install dependencies
$ npm install
$ bower install
Generate browser bundle source
$ make browser
Run tests
$ make test
MIT © Tomas Aparicio