diff --git a/public/js/controllers/header.js b/public/js/controllers/header.js index c26d48f6..19df8c6f 100644 --- a/public/js/controllers/header.js +++ b/public/js/controllers/header.js @@ -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 "" + } } \ No newline at end of file