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) {}
|
constructor(public todoStore: Store, public factory: TodoFactory) {}
|
||||||
|
|
||||||
enterTodo($event, inputElement): void {
|
enterTodo(inputElement): void {
|
||||||
this.addTodo(inputElement.value);
|
this.addTodo(inputElement.value);
|
||||||
inputElement.value = '';
|
inputElement.value = '';
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
placeholder="What needs to be done?"
|
placeholder="What needs to be done?"
|
||||||
autofocus
|
autofocus
|
||||||
#newtodo
|
#newtodo
|
||||||
(keyup.enter)="enterTodo($event, newtodo)">
|
(keyup.enter)="enterTodo(newtodo)">
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section id="main">
|
<section id="main">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user