blob: 5ec6fa85ae0a7247a957ee1ac166247d0073c4bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/**
* The status controller
*
* @param {$scope} $scope The $scope service from angular
* @param {Identity} The Identity service
*/
mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($scope, Identity, $rootScope)
{
// Give profile to model
$scope.profile=Identity.getProfile();
// Function to logout
$scope.logout=function(){
Identity.logout();
$rootScope.$broadcast('logoutEvent');
};
}]);
|