Skip to content

Instantly share code, notes, and snippets.

@darrenmothersele
Last active December 20, 2018 14:13
Show Gist options
  • Save darrenmothersele/301b7d47ce9e27760cf8e13a465dc287 to your computer and use it in GitHub Desktop.
Save darrenmothersele/301b7d47ce9e27760cf8e13a465dc287 to your computer and use it in GitHub Desktop.
import { Action } from '@ngrx/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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment