2 #todoapp-angular-ngrx
//.............................
onCreate(todo) {
console.log(todo)
this.store.dispatch(new TodoAction.CreateTodo(todo));
}
onDelete(todo) {
this.store.dispatch(new TodoAction.DeleteTodo(todo));
}
onEdit(todo) {
this.store.dispatch(new TodoAction.UpdateTodo(todo));
}
completeTodo(todo) {
this.store.dispatch(new TodoAction.CompleteTodo(todo));
}