diff --git a/app/index.html b/app/index.html index f3d2275..0c12d98 100755 --- a/app/index.html +++ b/app/index.html @@ -58,7 +58,6 @@ - diff --git a/app/scripts/directives/activeLink.js b/app/scripts/directives/activeLink.js deleted file mode 100644 index bf9e098..0000000 --- a/app/scripts/directives/activeLink.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -angular.module('volleyApp'). -directive('activeLink', ['$location', - function (location) { - return { - restrict: 'A', - link: function (scope, element, attrs, controller) { - var clazz = attrs.activeLink; - var path = attrs.href; - path = path.substring(1); //hack because path does not return including hashbang - scope.location = location; - scope.$watch('location.path()', function (newPath) { - if (path === newPath) { - element.parent().addClass(clazz); - } else { - element.parent().removeClass(clazz); - } - }); - } - }; - }]);