From b7b33f8e29c965b435e54fe1efb9aedf6567bf0e Mon Sep 17 00:00:00 2001 From: Leigh Zhu Date: Fri, 10 Jul 2015 14:40:02 +0800 Subject: [PATCH] Fixed ng-for typo && fix param in addTodo() --- public/docs/js/latest/guide/user-input.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/docs/js/latest/guide/user-input.jade b/public/docs/js/latest/guide/user-input.jade index fda739e148..b686e9ea9e 100644 --- a/public/docs/js/latest/guide/user-input.jade +++ b/public/docs/js/latest/guide/user-input.jade @@ -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) {