added isSelected function for nav selection

This commit is contained in:
Martins Untals
2013-08-22 22:31:10 +03:00
parent 3b4cfbbbc4
commit 905d547701

View File

@@ -11,4 +11,10 @@ function HeaderController($scope, $location, Global) {
$scope.init = function() {
};
$scope.isSelected = function(item) {
if ($location.path() == "/"+item.link) {
return "active"
} else return ""
}
}