Description
I would like to use ui-router to manage a 'pane' within the editor component of plunker (http://plnkr.co/edit/).
Plunker currently uses $routeProvider
with html5Mode(true)
for its routing needs (though it would have been MUCH easier w/ ui-router had that been available at the time).
The editor can be in one of several states:
/edit/
editing a blank plunk/edit/<sourceName>:<sourceDef>
creating an unsaved plunk based on an external or dynamic source/edit/<plunkId>
editing an existing plunk
Now, the icons on the right allow a user to access different 'panes'. In one pane, I would like to have a what essentially amounts to a self-contained SPA. A WIP can be seen at: http://plnkr.co/edit/Qv0uCROy1jbAmhjQ2TkR?p=preview (may not work if dev server is off).
To get this to work, it seems to me that trying to patch in some sort of path-based routing would just be a route for corner-cases and misery and trying to use hash-based routing would conflict w/ the existing html5Mode routing.
My thinking is then that it would be great if the state of ui-router could optionally be encoded into a query parameter. Perhaps we could have pluggable state encoders/decoders?
Hope to hear your thoughts, I really love this project.