diff --git a/app.js b/app.js index d19213c..5f7e00d 100644 --- a/app.js +++ b/app.js @@ -45,7 +45,7 @@ }); }); - app.controller('AppController', function($scope, Auth, API, $location) { + app.controller('AppController', function($scope, Auth, API, $location, $route) { console.log('in AppController'); console.log(location); @@ -81,7 +81,8 @@ $scope.$on('login', function() { $scope.showplayer = true; $scope.showlogin = false; - $location.path('/').replace().reload(); + $location.path('/').replace(); + $route.reload(); }); $scope.$on('logout', function() {