# meepo-axios

> meepo axios

Latest version **1.3.8** (published 2018-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install meepo-axios
pnpm add meepo-axios
yarn add meepo-axios
bun add meepo-axios
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.8 |
| Published | 2018-01-03 |
| First published | 2017-12-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | imeepos |
| Maintainers | imeepos2 |

## Links

- npm: https://www.npmjs.com/package/meepo-axios
- Repository: https://github.com/meepobrother/meepo-axios
- Homepage: https://github.com/meepobrother/meepo-axios/README.md
- Issues: https://github.com/meepobrother/meepo-axios/issues
- npm.io page: https://npm.io/package/meepo-axios

## Dependencies (9)

- [rxjs](https://npm.io/package/rxjs.md) ^5.5.0
- [zone.js](https://npm.io/package/zone.js.md) 0.8.4
- [meepo-core](https://npm.io/package/meepo-core.md) >=3.1.3
- [meepo-uuid](https://npm.io/package/meepo-uuid.md) >=1.1.1
- [meepo-base64](https://npm.io/package/meepo-base64.md) >=1.1.2
- [@angular/core](https://npm.io/package/@angular/core.md) >=5.1.2
- [@angular/common](https://npm.io/package/@angular/common.md) >=5.1.2
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ~0.1.10
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) >=5.1.2

## Recent versions

- 1.3.8 (latest) — 2018-01-03
- 1.3.7 — 2017-12-31
- 1.3.6 — 2017-12-31
- 1.3.5 — 2017-12-31
- 1.3.4 — 2017-12-31
- 1.3.3 — 2017-12-31
- 1.3.2 — 2017-12-31
- 1.3.1 — 2017-12-31
- 1.3.0 — 2017-12-31
- 1.2.9 — 2017-12-30
- 1.2.8 — 2017-12-30
- 1.2.7 — 2017-12-30
- 1.2.6 — 2017-12-30
- 1.2.5 — 2017-12-30
- 1.2.4 — 2017-12-29
- … 19 more at https://npm.io/package/meepo-axios/versions

## README

## meepo axios

> 已对加载中及错误进行处理

- 安装

```sh
yarn add meepo-axios
# or
npm install --save meepo-axios
```

- 导入

```ts
import { AxiosModule } from 'meepo-axios';
import { MeepoCoreModule } from 'meepo-core';
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AxiosModule.forRoot(),
    MeepoCoreModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
```
- 使用

```html
<core-root></core-root>
```

```ts
import { AxiosService } from 'meepo-axios';

// get
let c1 = this.axios.get("https://meepo.com.cn/v1/cities1").then(res=>{
    console.log(res);
}).cache(err=>{
    console.log(err)
});;

// post
let data = {};
let c1 = this.axios.post("https://meepo.com.cn/v1/cities1",data).then(res=>{
    console.log(res);
}).cache(err=>{
    console.log(err)
});

// 合并请求
let c1 = this.axios.get("https://meepo.com.cn/v1/cities1");
let c2 = this.axios.get("https://meepo.com.cn/v1/cities2");
let s$ = this.axios.all([c1, c2]).subscribe(res => {
    s$.unsubscribe();
});
```

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