0.4.0-beta.1 • Published 6 years ago

@chloe463/romuald v0.4.0-beta.1

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Romuald

Overview

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

Usage

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

@Injectable()
export class YourStore extends Armory<AppState> {
  constructor() {
    const initialState = {};
    super(initialState, reducerFunction);
  }
}
// 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 */ }
    // });
  }
}
0.4.0-beta.1

6 years ago

0.4.0-beta.0

6 years ago

0.4.0-alpha.2

6 years ago

0.4.0-alpha.1

6 years ago

0.4.0-alpha.0

6 years ago

0.3.0-alpha.0

6 years ago

0.2.0

6 years ago