From 6c3053081ee782d93275175ac5ed0da6d13229a5 Mon Sep 17 00:00:00 2001 From: mekhti11 Date: Wed, 21 Jun 2017 05:23:19 +0300 Subject: [PATCH] Update Listing 13.html --- Chapter 02/Listing 13.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 + }); } });