Created
May 1, 2017 09:59
-
-
Save tomastrajan/726ba5ca301c4de0df757acec34dacd4 to your computer and use it in GitHub Desktop.
Angular Model Pattern - component service call
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
export class TodosComponent { | |
/* ... */ | |
onTodoToggleClick(todo: Todo) { | |
this.todosService.toggleTodo(todo.name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment