Skip to content

Commit

Permalink
fix(uiSrefActive): annotate controller injection
Browse files Browse the repository at this point in the history
Added to release/angular-ui-router.js file.
Current version is not working in minified version.

angular-ui#671 already fixed it but not in release.
  • Loading branch information
longprao committed Dec 31, 2013
1 parent 86eacac commit cbbcb0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release/angular-ui-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -1674,7 +1674,7 @@ function $StateActiveDirective($state, $stateParams, $interpolate) {
function matchesParams() {
return !params || equalForKeys(params, $stateParams);
}
}
}]
};
}

Expand Down Expand Up @@ -1766,4 +1766,4 @@ function $RouteProvider( $stateProvider, $urlRouterProvider) {
angular.module('ui.router.compat')
.provider('$route', $RouteProvider)
.directive('ngView', $ViewDirective);
})(window, window.angular);
})(window, window.angular);

0 comments on commit cbbcb0c

Please sign in to comment.