Blame view
resources/js/predictor/LeaderboardController.js
360 Bytes
e77200db5 Initial commit |
1 2 3 4 5 6 7 8 9 10 |
angular.module('footyroom') .controller('LeaderboardController', ['$scope', 'leaderboard', '$location', function ($scope, leaderboard, $location) { $scope.sort = 'rank'; $scope.leaderboard = leaderboard; $scope.changeLeaderboardPhase = function (phase) { $location.path('/predictor/leaderboard' + (phase ? `/${phase}` : '')); }; }]); |