diff --git a/release/angular-ui-router.js b/release/angular-ui-router.js index 109b5d053..474c2c1fa 100644 --- a/release/angular-ui-router.js +++ b/release/angular-ui-router.js @@ -1647,7 +1647,7 @@ $StateActiveDirective.$inject = ['$state', '$stateParams', '$interpolate']; function $StateActiveDirective($state, $stateParams, $interpolate) { return { restrict: "A", - controller: function($scope, $element, $attrs) { + controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) { var state, params, activeClass; // There probably isn't much point in $observing this @@ -1674,7 +1674,7 @@ function $StateActiveDirective($state, $stateParams, $interpolate) { function matchesParams() { return !params || equalForKeys(params, $stateParams); } - } + }] }; } @@ -1766,4 +1766,4 @@ function $RouteProvider( $stateProvider, $urlRouterProvider) { angular.module('ui.router.compat') .provider('$route', $RouteProvider) .directive('ngView', $ViewDirective); -})(window, window.angular); \ No newline at end of file +})(window, window.angular);