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

Reverse order functionality (asc / desc) #66

Closed
rafaltrojanowski opened this issue Jul 31, 2015 · 2 comments
Closed

Reverse order functionality (asc / desc) #66

rafaltrojanowski opened this issue Jul 31, 2015 · 2 comments

Comments

@rafaltrojanowski
Copy link

Hi,
I'm not sure there is a clean way to reverse order using route action, or controller property.
I was wondering if queryParams can be used for this purpose but don't have idea how reload/update model. It makes transition but don't trigger model hook in route.

Should I implement separate route for each order?

I will be grateful for some advices how to refire model hook when some queryParam property change.

@rafaltrojanowski rafaltrojanowski changed the title reverse order functionality (asc / desc) Reverse order functionality (asc / desc) Jul 31, 2015
@kellyselden
Copy link
Collaborator

Here is the code to refresh model hook on query params change.

I'm a little confused by your exact request. Does this answer your question #55?

@rafaltrojanowski
Copy link
Author

I had two concepts, and wasn't sure whether queryParams is the best approach.
Thanks! This is what I was looking for. It's awesome!

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

No branches or pull requests

2 participants