mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-20 10:51:42 +01:00
added isSelected function for nav selection
This commit is contained in:
@@ -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 ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user