Skip to content

Export RouterConfigLoader to access loadChildren publicity #61192

Closed as duplicate

Description

@muuvmuuv

Which @angular/* package(s) are relevant/related to the feature request?

router

Description

I have build something that is called "angular-router-menus" where I am able to have menus declared in the Angular routes itself here: https://github.com/muuvmuuv/angular-router-menus.

At the moment, I use a pretty ugly workaround to access loadChildren from RouterConfigLoader through RouterPreloader. I would like to access it directly to be able to traverse through my lazy routes safely by Angular API's.

Proposed solution

Export RouterConfigLoader directly, its "root" so shouldn't be a problem?

Alternatives considered

None

Activity

  1. atscott commented on May 7, 2025

    @atscott
    Contributor

    Duplicate of #24069, #40010

  2. angular-automatic-lock-bot commented on Jun 7, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  3. locked and limited conversation to collaborators on Jun 7, 2025
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