You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
582 B

7 years ago
7 years ago
7 years ago
  1. angular.module('app.menu', ['pascalprecht.translate'])
  2. .controller('MenuCtrl', function($scope, $window) {
  3. if (localStorage.getItem("cim_app_userdata")) {
  4. $scope.storageuser = JSON.parse(localStorage.getItem("cim_app_userdata"));
  5. console.log($scope.storageuser);
  6. }
  7. $scope.logout = function() {
  8. localStorage.removeItem("cim_app_token");
  9. localStorage.removeItem("cim_app_userdata");
  10. localStorage.removeItem("cim_app_storageuser");
  11. localStorage.removeItem("cim_app_notifications");
  12. $window.location.reload(true);
  13. };
  14. });