Change logout event
This commit is contained in:
parent
211ebb0e43
commit
5d8b904a32
3 changed files with 3 additions and 4 deletions
|
@ -13,10 +13,8 @@ mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($
|
|||
$scope.profile=Identity.getProfile();
|
||||
|
||||
// Function to logout
|
||||
$scope.logout=function(){
|
||||
Identity.logout();
|
||||
$scope.raiseLogoutEvent=function(){
|
||||
$rootScope.$broadcast('logoutEvent');
|
||||
|
||||
};
|
||||
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue