Fixed ng-for typo && fix param in addTodo()
This commit is contained in:
@@ -133,7 +133,7 @@
|
||||
}
|
||||
|
||||
addTodo(todo: string) {
|
||||
this.todos.push(todo);
|
||||
this.todos.push(todo.value);
|
||||
}
|
||||
|
||||
doneTyping($event) {
|
||||
@@ -151,7 +151,7 @@
|
||||
this.todos = ["Eat Breakfast", "Walk Dog", "Breathe"];
|
||||
|
||||
this.addTodo = function(todo) {
|
||||
this.todos.push(todo);
|
||||
this.todos.push(todo.value);
|
||||
};
|
||||
|
||||
this.doneTyping = function($event) {
|
||||
|
||||
Reference in New Issue
Block a user