Created
January 15, 2019 09:58
-
-
Save trinhvanhuy/c52a16b29d763bc0df9147970e771c56 to your computer and use it in GitHub Desktop.
Spinner Action
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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