Skip to content

Commit 75125a4

Browse files
fix(StateDirectives): annotate injections for hook callback
1 parent 745d91f commit 75125a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/state/stateDirectives.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ function $StateRefActiveDirective($state, $stateParams, $interpolate) {
283283
activeClasses[stateHash] = activeClass;
284284
}
285285

286-
let updateAfterTransition = function ($transition$) { $transition$.promise.then(update); };
286+
updateAfterTransition.$inject = ['$transition$'];
287+
function updateAfterTransition ($transition$) { $transition$.promise.then(update); };
287288
let deregisterFn = $transitions.onStart({}, updateAfterTransition);
288289
$scope.$on('$destroy', deregisterFn);
289290

0 commit comments

Comments
 (0)