Skip to content

Commit 80b5db5

Browse files
committed
Merge pull request angular-ui#740 from samccone/sjs/fix-ui-sref-call
Fix uiSrefActive state for urlless navigation
2 parents d85aac7 + bf02468 commit 80b5db5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stateDirectives.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ function $StateRefDirective($state, $timeout) {
6565

6666
var newHref = $state.href(ref.state, params, { relative: base });
6767

68+
if (uiSrefActive) {
69+
uiSrefActive.$$setStateInfo(ref.state, params);
70+
}
6871
if (!newHref) {
6972
nav = false;
7073
return false;
7174
}
7275
element[0][attr] = newHref;
73-
if (uiSrefActive) {
74-
uiSrefActive.$$setStateInfo(ref.state, params);
75-
}
7676
};
7777

7878
if (ref.paramExpr) {

0 commit comments

Comments
 (0)