diff options
| author | Loic GUEGAN <loic@Manzerbredes.home> | 2016-04-17 18:42:15 +0200 |
|---|---|---|
| committer | Loic GUEGAN <loic@Manzerbredes.home> | 2016-04-17 18:42:15 +0200 |
| commit | 8e700c2b7de7a2bc095ea8edf3204f160f8a8941 (patch) | |
| tree | 53c92a7d5050c2f093660d512880bf1b00d75014 /client/js/controllers/status.js | |
| parent | 21b68f1da1ad5bc6520778c795fa6fe901d849c4 (diff) | |
Add comments and correct some bugs
Diffstat (limited to 'client/js/controllers/status.js')
| -rw-r--r-- | client/js/controllers/status.js | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/client/js/controllers/status.js b/client/js/controllers/status.js index 15850f4..c3e634b 100644 --- a/client/js/controllers/status.js +++ b/client/js/controllers/status.js @@ -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(); + }; -}]); + }]); |
