Skip to content

Commit 08c9678

Browse files
committed
fix(ui-sref): replace raw href modification with attrs.
1 parent bcaddf5 commit 08c9678

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)