mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-07 15:09:23 +01:00
20 lines
449 B
JavaScript
20 lines
449 B
JavaScript
function HeaderController($scope, $location, Global) {
|
|
$scope.global = Global;
|
|
$scope.menu = [{
|
|
"title": "Articles",
|
|
"link": "articles"
|
|
}, {
|
|
"title": "Create New Article",
|
|
"link": "articles/create"
|
|
}];
|
|
|
|
$scope.init = function() {
|
|
|
|
};
|
|
|
|
$scope.isSelected = function(item) {
|
|
if ($location.path() == "/"+item.link) {
|
|
return "active"
|
|
} else return ""
|
|
}
|
|
} |