Fixed ng-for typo && fix param in addTodo()

This commit is contained in:
Leigh Zhu 2015-07-10 14:40:02 +08:00 committed by Ward Bell
parent 551f35bed3
commit b7b33f8e29
1 changed files with 2 additions and 2 deletions

View File

@ -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) {