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
395 B

4 years ago
  1. app.controller('MenuController', function($scope, $cookieStore, $location, $window, $modal) {
  2. if(typeof($cookieStore.get('user')) != "undefined"){
  3. $scope.user = $cookieStore.get('user');
  4. $scope.logout = function(){
  5. $cookieStore.remove("user");
  6. $location.path("/");
  7. $window.location.reload();
  8. };
  9. }else{
  10. $scope.logg = function(log){
  11. modalCreatelog($modal, log);
  12. };
  13. }
  14. });