# @chloe463/romuald

> A simple flux library

Latest version **0.4.0-beta.1** (published 2018-06-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @chloe463/romuald
pnpm add @chloe463/romuald
yarn add @chloe463/romuald
bun add @chloe463/romuald
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.0-beta.1 |
| Published | 2018-06-07 |
| First published | 2018-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 74.4 KB |
| Known vulnerabilities | 0 (+8 in 1 direct dependencies) |
| Install scripts | no |
| Author | Tsuyoshi HARA |
| Maintainers | chloe463 |
| Keywords | flux |

## Links

- npm: https://www.npmjs.com/package/@chloe463/romuald
- npm.io page: https://npm.io/package/@chloe463/romuald

## Dependencies (2)

- [rxjs](https://npm.io/package/rxjs.md) ^6.0.0
- [@angular/core](https://npm.io/package/@angular/core.md) ^6.0.0

## Recent versions

- 0.4.0-beta.1 (latest) — 2018-06-07
- 0.4.0-beta.0 — 2018-05-29
- 0.4.0-alpha.2 — 2018-05-24
- 0.4.0-alpha.1 — 2018-05-23
- 0.4.0-alpha.0 — 2018-05-22
- 0.3.0-alpha.0 — 2018-05-09
- 0.2.0 — 2018-04-21

## README

# Romuald

## Overview

Romuald is a simple flux framework (like redux) for Angular.

## Usage

```ts

// Your state store class
import { Armory } from 'romuald';

@Injectable()
export class YourStore extends Armory<AppState> {
  constructor() {
    const initialState = {};
    super(initialState, reducerFunction);
  }
}
```

```ts
// On some component
export class AppComponent {
  constructor(private _store) {
  }

  someAction() {
    this._store.dispatch({
      type: '/* string */',
      payload: { /* payload to pass to reducer function */ }
    });

    // Or use `next`
    // this._store.next({
    //   type: '/* string */',
    //   payload: { /* payload to pass to reducer function */ }
    // });
  }
}
```

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