Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gavilanch
Created June 17, 2019 14:45
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/21b4eee7d254d645cdf647e038530136 to your computer and use it in GitHub Desktop.
Save gavilanch/21b4eee7d254d645cdf647e038530136 to your computer and use it in GitHub Desktop.
handleEditClick(todo: TodoViewModel) {
const modal = this.modalService.open(TodoFormComponent);
modal.result.then(
this.handleModalTodoFormClose.bind(this),
this.handleModalTodoFormClose.bind(this)
)
modal.componentInstance.createMode = false;
modal.componentInstance.todo = todo;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment