angular.module('bananaraceApp.controllers').controller('OverviewCtrl', ['$scope', 'OverviewService', '$routeParams', function ($scope, OverviewService, $routeParams) { //set route params in scope variables $scope.currentChampionship = $routeParams.idchampionship; console.log('OVERVIEW.JS LOADEDddd'); //data for the data gods $scope.overviewdata = {}; $scope.refreshData = function() { OverviewService.getData($scope.currentChampionship). success(function(data, status, headers, config) { console.log('getData successful...'); console.log(data); if(data['ok']==true) { //init the tier container var tiers = []; //post process for(var i = 0; i