Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

DUPE of 8358 (1 commit added) #8601

Closed
wants to merge 7 commits into from
Closed

Conversation

jeffbcross
Copy link
Contributor

Pull requesting for Travis with new commit + rebase

Add a $route#update method for changing the current route
parameters without having to build a URL and call $location#path.
Useful for apps with a structure involving programmatically moving
between pages on the current route, but with different :param
values.
This ensures that parameters are matched to the correct value when
being updated.
Adds a check to ensure the $location.path() changes to an expected
URL when the route changes.
Change the name of the method to make clearer its purpose.
Better to use angular methods than my clunky code.
I accidentally added the updateParams tests inside of the tests for
`reloadOnSearch` - This commit extracts them to their own describe
block.
Properties in the object passed to $route.updateParams() will be
added to the location as queryParams if not contained within the
route's path definition.
@jeffbcross
Copy link
Contributor Author

Merged: 77a1acc

@jeffbcross jeffbcross closed this Aug 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants