update timeout for getting data from cookies.

This commit is contained in:
kunw 2016-05-20 18:19:49 +08:00
parent 09db2d04d0
commit 758a02c715
2 changed files with 3 additions and 2 deletions

View File

@ -18,10 +18,11 @@
vm.isLoggedIn = false;
$timeout(function() {
vm.user = currentUser.get();
console.log('current user:' + angular.toJson(vm.user));
if(angular.isDefined(vm.user)) {
vm.isLoggedIn = true;
}
});
}, 300);
vm.setLanguage = setLanguage;
vm.logOut = logOut;

View File

@ -22,7 +22,7 @@
vm.isAdmin = true;
}
}
});
}, 300);
vm.url = $window.location.pathname;
}