fix(example): unused event
This commit is contained in:
parent
1db6870a81
commit
f83f1ee0ce
|
@ -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 = '';
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue