Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Feature Request: optional url-less auxiliary routes #441

Description

@mantissa7

I have a situation where I have a series of routes, where each route has two components: a Hero component and a Page component. These never change independently of each other, and therefore never need the funky parentheses url.

<div>
    <div id="hero">
        <app-logo></app-logo>
        <nav>...</nav>
        <div>
            <router-outlet name="hero"></router-outlet>
        </div>
    </div>
    <div id="page">
            <router-outlet></router-outlet>
    </div>
</div>

Both outlets are always loaded and hero cannot be loaded via route.data as it contains buttons and forms and events etc. In this case http://url.com/page1 would always load both components, therefore http://url.com/page1(hero:component) is redundant.

I would like to suggest the ability to load a series of named outlets without needing the URL to change.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions