Bug fix 

Fix- $scope.teams -> $rootScope.teams