Sitelet https://github.com/angular/angular/issues/26964
Skip to content

Named outlets of lazy loaded modules in auxiliary routes do not work聽#26964

Description

@joshualouisjenson

馃悶 bug report

Affected Package

7.0.1

Is this a regression?

No

Description

Named routes of lazy loaded modules which are loaded as part of an auxiliary route in another lazy loaded module do not work. Empty routes work correctly.

馃敩 Minimal Reproduction

https://stackblitz.com/edit/angular-pxlnes

Note that named and unamed outlets for non-lazy loaded modules in LazyModule1 work correctly, as does the unnamed route in LazyModule2. The named route in LazyModule2, when accessed through the auxilliary route in LazyModule1 however, does not.

In the example, the problem link is the second link in the list titled "Lazy content with parameters".

馃敟 Exception or Error

errors.ts:35 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'lazy1/1/2'

馃實 Your Environment

7.0.1

I searched for other issues and found some others that are similar to this setup (such as #24562) but are not exactly the same. The workaround for that issue is also unsuitable for my use case, as I need to be able to reroute the auxiliary outlet without changing the primary route.

Thank you.

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions