Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(uiSref): replace angular.copy with extend #3330

Merged
merged 1 commit into from
Feb 26, 2017

Conversation

mrohr
Copy link
Contributor

@mrohr mrohr commented Feb 9, 2017

using angular.copy broks states with optional params containing ES6 objects like Map and Set. The rest of ui-router seems to use extend vs angular.copy, and a deep copy shouldn't be needed here.

this fixes #3189.

@christopherthielen
Copy link
Contributor

This seems good. The copy was introduced in b5f7b59 to support references to objects in the expression.

I'm actually not sure that the extend (nor copy) is necessary either, but it shouldn't hurt.

@christopherthielen christopherthielen merged commit 20d1fcd into angular-ui:master Feb 26, 2017
@christopherthielen
Copy link
Contributor

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

State transition breaks ES6 Map when passed through optional $stateParams in a ui-sref
2 participants