Skip to content

is there a way to handle multiple states? #490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
daanporon opened this issue Oct 10, 2013 · 1 comment
Closed

is there a way to handle multiple states? #490

daanporon opened this issue Oct 10, 2013 · 1 comment

Comments

@daanporon
Copy link

Hi, in the app we are developing we need to be able to handle multiple states. Now we are using the ui-router for our main state which works just fine. But we have this panel which can be triggered from everywhere. Which needs to load a state 'independently' from our main state. SO we have a 'main state' and a 'panel state'.

The panel state should also be a part of the url so that you navigate directly to it and it opens and loads the correct state. It would also be cool if we change our 'main state' the 'panel state' just stays as it is. Any idea if such a thing is possible using the ui-router?

We are thinking of building our own PanelRouter or something similar which handles the routing of the panel. And the route for the panel can be part of the url using a get parameter, for example /this/is/our/main/state?panel=/this/is/our/panel/state ... eventually if we want multiple panels with state information we can do this: /this/is/our/main/state?panel=/this/is/our/panel/state&panel2=/this/is/our/second/panel/state.

It would be cool if we could reuse things of the ui-router, so that we don't need to write the logic of handling url-parameters, views, etc. again. Do you think something like this is possible using the ui-router? Where should we start? Does anyone already did something like this?

Kind regards,
Daan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants