Skip to content

Instantly share code, notes, and snippets.

@nomanHasan
Created October 11, 2017 09:04
Show Gist options
  • Save nomanHasan/596bc08965f1669ccbb1b46be14ae08b to your computer and use it in GitHub Desktop.
Save nomanHasan/596bc08965f1669ccbb1b46be14ae08b to your computer and use it in GitHub Desktop.
4 #todoapp-angular-ngrx
//..............................
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