Correct bugs

This commit is contained in:
manzerbredes 2016-03-02 17:41:04 +01:00
parent b6d7d2c30e
commit fa5a48bc3a
4 changed files with 17 additions and 24 deletions

View file

@ -11,10 +11,10 @@ mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($
// Give profile to model
$scope.profile=Identity.getProfile();
// Function to logout
$scope.raiseLogoutEvent=function(){
$rootScope.$broadcast('logoutEvent');
$scope.logout=function(){
Identity.logout();
};
}]);