rjax
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.