2016-01-31 11:47:13 +01:00
|
|
|
|
|
|
|
|
2016-02-06 12:10:04 +01:00
|
|
|
/**
|
|
|
|
* The status controller
|
|
|
|
*
|
|
|
|
* @param {$scope} $scope The $scope service from angular
|
2016-02-10 21:45:52 +01:00
|
|
|
* @param {Identity} The Identity service
|
2016-02-06 12:10:04 +01:00
|
|
|
*/
|
2016-02-17 14:01:13 +01:00
|
|
|
mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($scope, Identity, $rootScope)
|
2016-02-05 19:35:38 +01:00
|
|
|
{
|
2016-02-22 17:30:25 +01:00
|
|
|
|
2016-03-20 11:23:06 +01:00
|
|
|
|
2016-02-22 17:30:25 +01:00
|
|
|
// Give profile to model
|
2016-02-24 15:02:14 +01:00
|
|
|
$scope.profile=Identity.getProfile();
|
2016-03-02 17:41:04 +01:00
|
|
|
|
2016-02-22 17:30:25 +01:00
|
|
|
// Function to logout
|
2016-03-02 17:41:04 +01:00
|
|
|
$scope.logout=function(){
|
2016-03-21 06:47:01 +01:00
|
|
|
Identity.logout();
|
|
|
|
};
|
2016-02-17 14:01:13 +01:00
|
|
|
|
2016-02-10 17:47:01 +01:00
|
|
|
}]);
|