docs: function _archive(todo) {
              var deferred = $q.defer();
              service.archive(todo, function () {
                  return deferred.resolve();
              }, function () {
                  return deferred.reject();
              });
              return deferred.promise;
          }