Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant