blob: 15850f49b118be346c04b0a206c3ce1942907b8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/**
* 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();
};
}]);
|