app/scripts/app/todoController.js
/**
         * update completed state of the given task
         */
update completed state of the given task
update completed state of the given task
function updateTask(task){
            $http.post('http://localhost:3000/update', task).then(function(response){
                refreshTasks();
            }).catch(function(err){
                    console.log(err);
            });
        }
function updateTask ( task ) { $http . post ( 'http://localhost:3000/update' , task ) . then ( function ( response ) { refreshTasks ( ) ; } ) . catch ( function ( err ) { console . log ( err ) ; } ) ; }
update completed state of the given task
update completed state of the given task