Add comments and correct some bugs

This commit is contained in:
Loic GUEGAN 2016-04-17 18:42:15 +02:00
parent 21b68f1da1
commit 8e700c2b7d
6 changed files with 59 additions and 68 deletions

View file

@ -6,16 +6,14 @@
* @param {$scope} $scope The $scope service from angular
* @param {Identity} The Identity service
*/
mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($scope, Identity, $rootScope)
{
mainApp.controller('statusCtrl', ['$scope', 'Identity', '$rootScope', function ($scope, Identity, $rootScope)
{
// Give profile to model
$scope.profile = Identity.getProfile();
// Give profile to model
$scope.profile=Identity.getProfile();
// Function to logout
$scope.logout=function(){
Identity.logout();
};
// Function to logout
$scope.logout = function () {
Identity.logout();
};
}]);
}]);