Created
October 11, 2017 09:04
-
-
Save nomanHasan/596bc08965f1669ccbb1b46be14ae08b to your computer and use it in GitHub Desktop.
4 #todoapp-angular-ngrx
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
//.............................. | |
export const DELETE_TODO = '[Todo] DELETE_TODO'; | |
export const DELETE_TODO_SUCCESS = '[Todo] DELETE_TODO_SUCCESS'; | |
export const DELETE_TODO_ERROR = '[Todo] DELETE_TODO_ERROR'; | |
//................................ | |
export class DeleteTodo implements Action { | |
readonly type = DELETE_TODO; | |
constructor(public payload: TodoState){} | |
} | |
export class DeleteTodoSuccess implements Action { | |
readonly type = DELETE_TODO_SUCCESS; | |
constructor(public payload: TodoState){} | |
} | |
export class DeleteTodoError implements Action { | |
readonly type = DELETE_TODO_ERROR; | |
constructor(public payload: TodoState){} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment