diff --git a/index.html b/index.html index 8f8d55b..0f4dda5 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@ {{mates}}
-
mates
+
{{matesText()}}
diff --git a/scripts/app.js b/scripts/app.js index c650e93..7d485bc 100644 --- a/scripts/app.js +++ b/scripts/app.js @@ -4,6 +4,11 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http, { $scope.mates = 0; + $scope.matesText = function() + { + return $scope.mates == 1 ? "mate" : "mates"; + }; + $scope.animation = undefined; $scope.countdownStyle = {