blob: 1613e9806dc71ddd5cebd24ae8fa31f0ebf2ed49 [file] [log] [blame]
'use strict';
angular.module('odeConsole')
.controller('NavbarController', function ($scope, $location, ProcessService) {
$scope.isActive = function (viewLocation) {
return $location.path().indexOf(viewLocation) === 0;
};
// watch for summary changes and update counter badges
$scope.$watch(function() {
return ProcessService.summary;
}, function (newVal, oldVal, scope) {
scope.summary = newVal;
});
})
;