rjax
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

rjax

License

English | 简体中文

Features

  • Porting the excellent @angular/common/http module.
  • Responsive ajax library based on rxjs.
  • Written in TypeScript with predictable static types.
  • Powerful and easy to use.

📦 Install

yarn add rjax # or: npm install rjax --save

🔨 Usage

import { Rjax } from 'rjax';
const rjax = new Rjax();
rjax.get(`/user/12345`).subscribe(response => {
    // Succeed Callback
    console.log(response);
}, error => {
    // Error Callback
    console.log(error);
});

Docs

API document and example link

Author

rjax © ppjjzz, Released under the MIT License.
Authored and maintained by ppjjzz.

/rjax/

    Package Sidebar

    Install

    npm i rjax

    Weekly Downloads

    4

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    1.01 MB

    Total Files

    73

    Last publish

    Collaborators

    • panjiazhi