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

Nested routing #155

Open
SPAHI4 opened this issue Oct 9, 2016 · 0 comments
Open

Nested routing #155

SPAHI4 opened this issue Oct 9, 2016 · 0 comments

Comments

@SPAHI4
Copy link

SPAHI4 commented Oct 9, 2016

My structure

App page

        <app-location route={{route}}></app-location>
        <app-route route="{{route}}" pattern="/:page" data="{{data}}" tail="{{subroute}}"></app-route>


                <neon-animated-pages attr-for-selected="id" selected="{{data.page}}">
                    <foo-page id="foo" route="{{subroute}}"></foo-page>=
                    <bar-page id="bar" route="{{subroute}}"></bar-page>
                </neon-animated-pages>

foo page

        <app-route route="{{route}}" pattern="/:subpage" data="{{data}}"></app-route>

                <neon-animated-pages attr-for-selected="id" selected="{{data.subpage}}" fallback-selection="not-found">
                ...
                </neon-animated-pages>

bar page

        <app-route route="{{route}}" pattern="/:subpage" data="{{data}}"></app-route>

Problem:

Redirect from /bar/some-url to /bar/not-found because of fallback-selection in foo-page

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

1 participant