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.

15 lines
484 B

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