diff --git a/Chapter 02/Listing 13.html b/Chapter 02/Listing 13.html index de10a90..74ff9e3 100644 --- a/Chapter 02/Listing 13.html +++ b/Chapter 02/Listing 13.html @@ -48,7 +48,10 @@ } $scope.addNewItem = function(actionText) { - $scope.todo.items.push({ action: actionText, done: false}); + if(newItem != null) + $scope.todo.items.push({ + action : newItem , done : false + }); } });