javascript - Ember js, URL state for group edit -
as says ember's ideology: "every application state should shown in url". , don't have idea how represent state in url group actions on models?
as example have edit action song, url is:
http://myapplication.com/song/123/edit
but need have functionality group edit. how should represent in url? may this?
http://myapplication.com/song/123,124,125,126/edit
thanks lot suggestion
you might think of url other way around: put action (edit) first, targets. syntax you, add targets url parameters this:
http://myapplication.com/edit?song=123
then if there mutiple songs:
http://myapplication.com/edit?song=123&song=456&song=789
it's been while since worked in ember, don't remember if there's preferred way specify list/array of url parameters.
Comments
Post a Comment