mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-08 03:56:41 +01:00
actualitzant...
This commit is contained in:
12
www/js/menu.js
Normal file
12
www/js/menu.js
Normal file
@@ -0,0 +1,12 @@
|
||||
angular.module('app.menu', ['pascalprecht.translate'])
|
||||
|
||||
|
||||
.controller('MenuCtrl', function($scope) {
|
||||
$scope.storageuser = JSON.parse(localStorage.getItem("cim_app_userdata"));
|
||||
console.log($scope.storageuser);
|
||||
$scope.logout = function() {
|
||||
localStorage.removeItem("cim_app_token");
|
||||
localStorage.removeItem("cim_app_userdata");
|
||||
window.location = "/";
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user