Skip to content
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

Parallel or double routing #614

Closed
tamtakoe opened this issue Nov 27, 2013 · 2 comments
Closed

Parallel or double routing #614

tamtakoe opened this issue Nov 27, 2013 · 2 comments

Comments

@tamtakoe
Copy link

Sometimes we need double routing. Especially if we have popup. E.g. we have pages: /videos, /articles/123, /group/bbc and we have video: /video/345. We need one page link with video link: e.g. /group/bbc/!/video/345 or /videos~/video/345 when ! or ~ mean start of second route. (http://vk.com)

Next problem. Sometimes we need only video link when the video popup open from some page. E.g. we are into /articles/123, we open video popup and path in address bar become /video/345. /video/345 is link to separate video page and we go to this page if place this link in adress bar, but we don't go to this page when we have open popup. When we close popup we return /articles/123 in adress bar. (http://fb.com)

@timkindberg
Copy link
Contributor

This feature is not currently implemented and may not be for quite some time because its very tricky. If you figure something out please let us know. Pretty sure you are talking about Orthogonal Views. Something like this? #160

@tamtakoe
Copy link
Author

Yes, it is. But my second case has simple desidion: write something in address bar without state changing (and recovery url from current state). First case I offer to do in this way:
url: /segm_1/123/~segm_2/456/~segm_3/789

.state('state1', {
  url: 'segm_1/:id1',
  ...
})
.state('.state2', {
  url: '~segm_2/:id2',
  ...
})
.state('.state3', {
  url: '~segm_3/:id3',
  ...
})
.separator('~')

it equivalent

.state('state1', {
  url: 'segm_1/:id',
  ...
})
.state('state1.state2', {
  url: 'segm_1:id1/segm_2/:id2',
  ...
})
.state('state1.state3', {
  url: 'segm_1:id1/segm_3/:id3',
  ...
})
.state('state1.state2.state3', {
  url: 'segm_1:id1/segm_2/:id2/segm_3/:id3',
  ...
})
.state('state1.state3.state2', {
  url: 'segm_1:id1/segm_3/:id3/segm_2/:id2',
  ...
})

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