fix(example): unused event

This commit is contained in:
cexbrayat 2015-05-25 16:29:15 +08:00 committed by Victor Berchet
parent 1db6870a81
commit f83f1ee0ce
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class TodoApp {
constructor(public todoStore: Store, public factory: TodoFactory) {}
enterTodo($event, inputElement): void {
enterTodo(inputElement): void {
this.addTodo(inputElement.value);
inputElement.value = '';
}

View File

@ -9,7 +9,7 @@
placeholder="What needs to be done?"
autofocus
#newtodo
(keyup.enter)="enterTodo($event, newtodo)">
(keyup.enter)="enterTodo(newtodo)">
</header>
<section id="main">