-
-
Save gavilanch/6d70a4bcdce06f4538a4c2c4b5bd2c05 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
checkedDone(index: number) { | |
const newDoneValue = !this.todos[index].done | |
this.todos[index].done = newDoneValue; | |
const obj = { done: newDoneValue }; | |
const id = this.todos[index].id | |
this.todoService.editTodoPartial(id, obj); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment