istic-openstack/client/js/controllers/status.js

20 lines
457 B
JavaScript
Raw Normal View History

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-04-17 18:42:15 +02:00
mainApp.controller('statusCtrl', ['$scope', 'Identity', '$rootScope', function ($scope, Identity, $rootScope)
{
// Give profile to model
$scope.profile = Identity.getProfile();
2016-04-17 18:42:15 +02:00
// Function to logout
$scope.logout = function () {
Identity.logout();
};
2016-02-17 14:01:13 +01:00
2016-04-17 18:42:15 +02:00
}]);