Skip to content

feat(router): allow router outlet to be set on ng-container - #64562

Closed
crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:64553/router-outlet-container
Closed

crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:64553/router-outlet-container

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Updates the selector for RouterOutlet to allow for it to be set on an ng-container. This allows it to not render the host node which can affect the layout.

Fixes #64553.

Updates the selector for `RouterOutlet` to allow for it to be set on an `ng-container`. This allows it to not render the host node which can affect the layout.

Fixes angular#64553.
@crisbeto
crisbeto requested a review from atscott October 21, 2025 11:18
@crisbeto crisbeto added action: discuss target: minor This PR is targeted for the next minor release labels Oct 21, 2025
@pullapprove
pullapprove Bot requested a review from thePunderWoman October 21, 2025 11:18
@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: router labels Oct 21, 2025
@ngbot ngbot Bot added this to the Backlog milestone Oct 21, 2025
@pullapprove
pullapprove Bot requested a review from mmalerba October 21, 2025 12:36

@thePunderWoman thePunderWoman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed-for: public-api

@thePunderWoman
thePunderWoman removed the request for review from mmalerba October 21, 2025 15:08
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: discuss labels Oct 21, 2025
@thePunderWoman

Copy link
Copy Markdown
Contributor

This PR was merged into the repository. The changes were merged into the following branches:

@angular-automatic-lock-bot

Copy link
Copy Markdown

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.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 21, 2025
inesane pushed a commit to inesane/angular that referenced this pull request Mar 3, 2026
…64562)

Updates the selector for `RouterOutlet` to allow for it to be set on an `ng-container`. This allows it to not render the host node which can affect the layout.

Fixes angular#64553.

PR Close angular#64562
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: router detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

router-outlet should not affect layout (option to render as non-box/anchor)

3 participants

Sponsor
SponsoredKunjungi sekarang
Promo