Skip to content

Commit

Permalink
fix(uiSref): replace angular.copy with extend (PR #3330)
Browse files Browse the repository at this point in the history
Closes #3189
  • Loading branch information
mrohr authored and christopherthielen committed Feb 26, 2017
1 parent 7e26dbb commit 20d1fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/directives/stateDirectives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ uiSref = ['$uiRouter', '$timeout',

if (ref.paramExpr) {
scope.$watch(ref.paramExpr, function (val) {
rawDef.uiStateParams = angular.copy(val);
rawDef.uiStateParams = extend({}, val);
update();
}, true);
rawDef.uiStateParams = angular.copy(scope.$eval(ref.paramExpr));
rawDef.uiStateParams = extend({}, scope.$eval(ref.paramExpr));
}

update();
Expand Down

0 comments on commit 20d1fcd

Please sign in to comment.