public
Last active

Ember Query Param API examples

  • Download Gist

How can I send the query-params to the server?

If you are using Ember Data, you can do this with the filter() method. The filter method returns an array that will auto-update as other entries are found. http://emberjs.com/guides/models/frequently-asked-questions/

@machty is there a way to pass query-params a context, instead of the current controller?

This looks pretty great at first glance! Has any consideration been made for something like Matrix URLs to remove the requirement for sticking everything after the query string, even when it may semantically belong elsewhere?

This would allow a URL to look like:

#/magazines;publisher=machty;audience=moviegoers/issues

Instead of:

#/magazines/issues?magazines[publisher]=machty&magazines[audience]=moviegoers

@kamal i'm not sure what you mean, seems like the answer's definitely yes though {{link-to (query-params anythingYouWant)}}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.