-
-
Save gavilanch/05757ba8754c2b431559dff114cb5c69 to your computer and use it in GitHub Desktop.
This file contains 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
handleDeleteClick(todoId: string, index: number) { | |
this.todoService.deleteTodo(todoId) | |
.then(() => { | |
this.todos.splice(index, 1); | |
}) | |
.catch(err => console.error(err)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment