Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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