npm.io
1.0.15 • Published 7 years ago

nger-store

Licence
ISC
Version
1.0.15
Deps
2
Size
76 kB
Vulns
0
Weekly
0
Stars
54

nger-store

状态管理, Reactive State for nger

ngrx移植过来的

import { Action } from 'nger-store';
export enum ActionTypes {
  Increment = '[Counter Component] Increment',
  Decrement = '[Counter Component] Decrement',
  Reset = '[Counter Component] Reset',
}
export class Increment implements Action {
  readonly type = ActionTypes.Increment;
}
export class Decrement implements Action {
  readonly type = ActionTypes.Decrement;
}
export class Reset implements Action {
  readonly type = ActionTypes.Reset;
}