    # --------------------------------------------------------------------------------   # Update   # --------------------------------------------------------------------------------   $scope.update = ->     Client.update       id: $stateParams['id']     ,       client: $scope.