backbone.js - Marionette Router Query String Parameters In URL Fragment Routes -
i'm working on project requires ui state reproducible via url. in traditional (server-side) app, use both url parameters like:
/resources/:id
and unordered optional query string parameters, like:
/resources/:id?page=5&sort=date
is there idiomatic way achieve backbone/marionette routing? don't want have configure routes every possible combination of parameters.
the fact don't see addressed makes me think may barking wrong tree, approach-wise, think being able represent ui state possible in url pretty important lot of projects.
it looks best option now-orphaned backbone-query-parameters project.
it supports routes in form i'm looking for:
#resources/:id?flag=true
Comments
Post a Comment