0.4.0-beta.1 • Published 7 years ago
@chloe463/romuald v0.4.0-beta.1
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
7 years ago
0.4.0-beta.0
7 years ago
0.4.0-alpha.2
7 years ago
0.4.0-alpha.1
7 years ago
0.4.0-alpha.0
7 years ago
0.3.0-alpha.0
7 years ago
0.2.0
7 years ago