diff --git a/public/core.js b/public/core.js index 8b8889dc0..510e43861 100644 --- a/public/core.js +++ b/public/core.js @@ -16,7 +16,7 @@ function mainController($scope, $http) { $scope.createTodo = function() { $http.post('/api/todos', $scope.formData) .success(function(data) { - $('input').val(''); + $scope.formData.text = ''; $scope.todos = data; }) .error(function(data) { diff --git a/public/index.html b/public/index.html index b947c3225..4ededaff8 100644 --- a/public/index.html +++ b/public/index.html @@ -19,8 +19,7 @@ - - +