ConchordanceProject / ConchordanceWeb

A webapp for exploring chord fingerings for any fretted instrument.
4 stars 0 forks source link

Fully stateful url #64

Closed jbauschatz closed 10 years ago

jbauschatz commented 10 years ago

To prepare the way for social media sharing, we need stateful URLs. The currently selected chord and instrument need to be reflected in the parameters.

This will probably look something like this: /#/chordExplorer?chord=AM%instrument=guitar

This will require parsing the chord's root and type, as well as finding the instrument name by an abbreviation.

These parameters need to update as soon as the selections are made on the page, but without reloading the page.

jbauschatz commented 10 years ago

This might be hard with ui-router, we'll see. The $location service is lower level and might afford more control.

jbauschatz commented 10 years ago

http://conchordance.com/#/chordDetails?chord=G-M&position=0-2-4-3-0&instr=5-String%20Banjo

Boom.