reboundjs / rebound

Automatic data binding for backbone using HTMLBars.
MIT License
43 stars 4 forks source link

Router Query Params - v0.1.0 #61

Closed amiller-gh closed 9 years ago

amiller-gh commented 9 years ago

Router will automatically break query params out into a hash before passing to a callback.

amiller-gh commented 9 years ago

FINALLY.

Query params are parsed with qs before being passed as the last argument to route callbacks as a pojos. Despite including all of qs, the final compile size was actually reduced because of browserify. It does its job well.

Because IE9 uses a hash based router, IE9 adds its query params to the end of the hash, so urls look like this: www.reboundjs.com/root/#/biz/baz?foo=bar. This is how other frameworks handle IE9 query params, because modifying query params in browser forces a page refresh.