teamQuery.on("change", function () {
        $scope.safeApply(function () {
            $scope.team = teamQuery.result;
        });
    });