Skip to content

Commit 20d1fcd

Browse files
mrohrchristopherthielen
authored andcommitted
fix(uiSref): replace angular.copy with extend (PR #3330)
Closes #3189
1 parent 7e26dbb commit 20d1fcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/directives/stateDirectives.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ uiSref = ['$uiRouter', '$timeout',
284284

285285
if (ref.paramExpr) {
286286
scope.$watch(ref.paramExpr, function (val) {
287-
rawDef.uiStateParams = angular.copy(val);
287+
rawDef.uiStateParams = extend({}, val);
288288
update();
289289
}, true);
290-
rawDef.uiStateParams = angular.copy(scope.$eval(ref.paramExpr));
290+
rawDef.uiStateParams = extend({}, scope.$eval(ref.paramExpr));
291291
}
292292

293293
update();

0 commit comments

Comments
 (0)