swipely / aviator

Aviator is a single-page front-end router built for modularity.
MIT License
143 stars 6 forks source link

Add queryParam serialization to `navigate` #21

Closed hojberg closed 11 years ago

hojberg commented 11 years ago

Pass in the queryParams option that will be parsed into a queryString and added to the navigated uri:

Aviator.navigate('/users', { queryParams: { filter: [1,2] }}); will navigate to "/users?filter[]=1&filter[]=2"

@barnabyc @flahertyb

barnabyc commented 11 years ago

I just wrote some of this in an app branch, better it lives here though! :)