From c67334e66eb3ccbe41f8738be01c79d1a84b110c Mon Sep 17 00:00:00 2001 From: Hector Leon Zarco Garcia Date: Wed, 9 Sep 2015 12:34:49 +0200 Subject: [PATCH] Use .reload instead .reload --- app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() {