dubdiff/client/components/navbar/navbar.controller.js
2015-04-17 12:59:48 -04:00

17 lines
314 B
JavaScript

'use strict';
angular.module('markdownFormatWdiffApp')
.controller('NavbarCtrl', function ($scope, $location) {
$scope.menu = [{
'title': 'Home',
'link': '/'
}];
$scope.isCollapsed = true;
$scope.isActive = function(route) {
return route === $location.path();
};
});