We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b71ea37 commit a292d8fCopy full SHA for a292d8f
public/js/controllers/main.js
@@ -17,11 +17,11 @@ angular.module('todoController', [])
17
// CREATE ==================================================================
18
// when submitting the add form, send the text to the node API
19
$scope.createTodo = function() {
20
- $scope.loading = true;
21
22
// validate the formData to make sure that something is there
23
// if form is empty, nothing will happen
24
if ($scope.formData.text != undefined) {
+ $scope.loading = true;
25
26
// call the create function from our service (returns a promise object)
27
Todos.create($scope.formData)
0 commit comments