mercredi 24 décembre 2014

Backbonejs variable parameters


Consider this URL:



http://ift.tt/1EhfKoT



note:



#t=b



In this example, the variable "t" stores the current tab on the page where "b" is for billing.




How can I achieve query like parameters in backbone as shown above?


I understand Backbone has routes that support parameters in urls, but this is limited to when the data is in a hierarchy, for example: item/:id


But what about application settings that would not work well in a directory like structure?


The only solution I can think of is a custom parser and break up the key/values myself.


Any ideas?





Aucun commentaire:

Enregistrer un commentaire