# theon-angular-adapter

> Angular's $http agent adapter for theon based API clients

Latest version **0.1.0** (published 2015-12-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install theon-angular-adapter
pnpm add theon-angular-adapter
yarn add theon-angular-adapter
bun add theon-angular-adapter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-12-31 |
| First published | 2015-12-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Tomas Aparicio |
| Maintainers | h2non |
| Keywords | theon, adapter, http, adapter, api, angular |

## Links

- npm: https://www.npmjs.com/package/theon-angular-adapter
- Repository: https://github.com/theonjs/theon-angular-adapter
- Homepage: https://github.com/theonjs/theon-angular-adapter#readme
- Issues: https://github.com/theonjs/theon-angular-adapter/issues
- npm.io page: https://npm.io/package/theon-angular-adapter

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-12-31

## README

# theon-angular-adapter [![Build Status](https://api.travis-ci.org/theonjs/theon-angular-adapter.svg?branch=master)][travis]

AngularJS [$http](https://docs.angularjs.org/api/ng/service/$http) agent adapter for theon based API clients

It works with Angular `+1.0`.

## Installation

Via [npm](http://npmjs.com)
```bash
npm install theon-angular-adapter
```

Via [Bower](http://bower.io)
```bash
bower install theon-angular-adapter
```

Or loading the script remotely
```html
<script src="//cdn.rawgit.com/theonjs/theon-angular-adapter/master/angular-adapter.js"></script>
```

### Environments

- Chrome >= 5
- Firefox >= 3
- Safari >= 5
- Opera >= 10
- IE >= 9

### Setup

Load the module as dependency of your application
```js
var app = angular.module('app', ['theon.adapter'])
```

### Services

#### $resilient

Main service to creating new Resilient HTTP clients

```js
app.config(function ($theonAdapter) {
  // Configure theon to use the agent adapter
  theon.agents.set($theonAdapter)
})
```

## API

`theon` API [documentation](https://github.com/h2non/theon).

### $theonAdapter(req, res, done)

`theon` HTTP agent adapter.

### Development

Only [node.js](http://nodejs.org) is required for development

Clone the repository
```bash
$ git clone https://github.com/theonjs/theon-angular-adapter.git && cd theon-angular-adapter
```

Install dependencies
```bash
$ npm install
```
```bash
$ bower install
```

Generate browser bundle source
```bash
$ make browser
```

Run tests
```bash
$ make test
```

## License

[MIT](http://opensource.org/licenses/MIT) © Tomas Aparicio

[travis]: http://travis-ci.org/theonjs/theon-angular-adapter

---
_Source: https://npm.io/package/theon-angular-adapter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
