Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Created June 17, 2019 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gavilanch/6d70a4bcdce06f4538a4c2c4b5bd2c05 to your computer and use it in GitHub Desktop.
Save gavilanch/6d70a4bcdce06f4538a4c2c4b5bd2c05 to your computer and use it in GitHub Desktop.
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