- New nav menu.

- Polishing device list.
This commit is contained in:
Gunther Brunner
2014-03-25 21:18:10 +09:00
parent 8ed3ae1784
commit 593e14a80a
12 changed files with 115 additions and 10 deletions

View File

@@ -1,3 +1,16 @@
module.exports = function MenuCtrl($scope) {
$scope.isActive = function (viewLocation) {
var pattern = '/' + viewLocation,
re = new RegExp(pattern);
return re.test($location.path());
};
$scope.isActive = function (path) {
console.log($location.path())
console.log($location.path().substr(0, path.length))
return $location.path().substr(0, path.length) == path;
}
}