Fix the header links when we're on a non-angular page.
This commit is contained in:
parent
a8ebdc79c4
commit
e418d21d31
2 changed files with 12 additions and 5 deletions
|
@ -62,7 +62,14 @@ function HeaderCtrl($scope, $location, UserService, Restangular) {
|
|||
UserService.load();
|
||||
$location.path('/');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$scope.appLinkTarget = function() {
|
||||
if ($("div[ng-view]").length === 0) {
|
||||
return "_self";
|
||||
}
|
||||
return "";
|
||||
};
|
||||
|
||||
$scope.$on('$includeContentLoaded', function() {
|
||||
// THIS IS BAD, MOVE THIS TO A DIRECTIVE
|
||||
|
|
Reference in a new issue