Skip to content

Instantly share code, notes, and snippets.

@trinhvanhuy
Created January 15, 2019 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trinhvanhuy/c52a16b29d763bc0df9147970e771c56 to your computer and use it in GitHub Desktop.
Save trinhvanhuy/c52a16b29d763bc0df9147970e771c56 to your computer and use it in GitHub Desktop.
Spinner Action
import { Action } from '@ngrx/store';
export enum GlobalActionTypes {
ShowSpinner = '[Global] showSpinner',
HideSpinner = '[Global] HideSpinner',
}
export class ShowSpinner implements Action {
readonly type = GlobalActionTypes.ShowSpinner;
constructor() {}
}
export class HideSpinner implements Action {
readonly type = GlobalActionTypes.HideSpinner;
constructor() {}
}
export type GlobalActionsUnion =
ShowSpinner
| HideSpinner
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment