Skip to content

Commit 8592142

Browse files
committed
fix(uiSrefActive): annotate controller injection
- Fixes #671
1 parent 3898270 commit 8592142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/stateDirectives.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ $StateActiveDirective.$inject = ['$state', '$stateParams', '$interpolate'];
7070
function $StateActiveDirective($state, $stateParams, $interpolate) {
7171
return {
7272
restrict: "A",
73-
controller: function($scope, $element, $attrs) {
73+
controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) {
7474
var state, params, activeClass;
7575

7676
// There probably isn't much point in $observing this
@@ -97,7 +97,7 @@ function $StateActiveDirective($state, $stateParams, $interpolate) {
9797
function matchesParams() {
9898
return !params || equalForKeys(params, $stateParams);
9999
}
100-
}
100+
}]
101101
};
102102
}
103103

0 commit comments

Comments
 (0)