statusbar.view.js: scope.$watch(function () { return dataService.getUserName(); }, function (newUser, oldUser) { if (newUser !== oldUser) scope.user = newUser; if(scope.user === 'Default User'){ scope.logoutDisable="logout-disable"; } }); scope.logout = function(){ if(scope.user != 'Default User'){ $location.path('/login'); } .cssfile: .logout-disable{ background-color:#e0e0e0; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)