From cbbcb0c5e17b07ba45af7553b2432d852706f628 Mon Sep 17 00:00:00 2001 From: Long Doan Date: Tue, 31 Dec 2013 15:40:41 +0700 Subject: [PATCH] fix(uiSrefActive): annotate controller injection Added to release/angular-ui-router.js file. Current version is not working in minified version. #671 already fixed it but not in release. --- release/angular-ui-router.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);