Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
added isSelected function for nav selection
Browse files Browse the repository at this point in the history
  • Loading branch information
martunta committed Aug 22, 2013
1 parent 3b4cfbb commit 905d547
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/js/controllers/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
}
}

0 comments on commit 905d547

Please sign in to comment.