Add grammar check for 'mate' or 'mates'
This commit is contained in:
parent
320dc7290c
commit
f99b8d57c2
@ -20,7 +20,7 @@
|
|||||||
{{mates}}<br/>
|
{{mates}}<br/>
|
||||||
<div class="timeRemainingBar" ng-style="countdownStyle"></div>
|
<div class="timeRemainingBar" ng-style="countdownStyle"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="below">mates</div>
|
<div class="below">{{matesText()}}</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -4,6 +4,11 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http,
|
|||||||
{
|
{
|
||||||
$scope.mates = 0;
|
$scope.mates = 0;
|
||||||
|
|
||||||
|
$scope.matesText = function()
|
||||||
|
{
|
||||||
|
return $scope.mates == 1 ? "mate" : "mates";
|
||||||
|
};
|
||||||
|
|
||||||
$scope.animation = undefined;
|
$scope.animation = undefined;
|
||||||
$scope.countdownStyle =
|
$scope.countdownStyle =
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user