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.

16 lines
508 B

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