Skip to content

Commit 0bb5f91

Browse files
Merge pull request #1300 from nikaspran/ui-sref-set-href
fix(uiSref): replace raw href modification with attrs.$set
2 parents 1c16d04 + 08c9678 commit 0bb5f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stateDirectives.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function $StateRefDirective($state, $timeout) {
112112
nav = false;
113113
return false;
114114
}
115-
element[0][attr] = newHref;
115+
attrs.$set(attr, newHref);
116116
};
117117

118118
if (ref.paramExpr) {

0 commit comments

Comments
 (0)