Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project the root node of empty blocks #53620

Closed

Conversation

crisbeto
Copy link
Member

Includes a couple of commits that allow for the root node of an @empty block to be content projected.

fix(compiler): project empty block root node

Expands the workaround from #52414 to allow for the root nodes of @empty blocks to be content projected.

fix(compiler): project empty block root node in template pipeline

Updates the template pipeline to allow for the root node of an @empty block to be content projected.

Fixes #53570.

Expands the workaround from angular#52414 to allow for the root nodes of `@empty` blocks to be content projected.

Fixes angular#53570.
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release area: compiler Issues related to `ngc`, Angular's template compiler labels Dec 18, 2023
@ngbot ngbot bot modified the milestone: Backlog Dec 18, 2023
Copy link
Member

@pkozlowski-opensource pkozlowski-opensource left a comment

Choose a reason for hiding this comment

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

LGTM - this was fast!

Copy link
Contributor

@dylhunn dylhunn left a comment

Choose a reason for hiding this comment

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

You mentioned you were worried the template pipeline part was messy, but IMO it's not that messy! Just the one thing you already pointed out, which is a known refactoring task :)

Updates the template pipeline to allow for the root node of an `@empty` block to be content projected.
@crisbeto crisbeto force-pushed the 53570/for-loop-empty-projection branch from 9ea6f3d to 78a855e Compare December 19, 2023 06:37
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release and removed action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Dec 19, 2023
@atscott
Copy link
Contributor

atscott commented Dec 19, 2023

This PR was merged into the repository by commit 478d622.

@atscott atscott closed this in df8a825 Dec 19, 2023
atscott pushed a commit that referenced this pull request Dec 19, 2023
…3620)

Updates the template pipeline to allow for the root node of an `@empty` block to be content projected.

PR Close #53620
@angular-automatic-lock-bot
Copy link

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 Jan 19, 2024
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
Expands the workaround from angular#52414 to allow for the root nodes of `@empty` blocks to be content projected.

Fixes angular#53570.

PR Close angular#53620
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
…gular#53620)

Updates the template pipeline to allow for the root node of an `@empty` block to be content projected.

PR Close angular#53620
rlmestre pushed a commit to rlmestre/angular that referenced this pull request Jan 26, 2024
Expands the workaround from angular#52414 to allow for the root nodes of `@empty` blocks to be content projected.

Fixes angular#53570.

PR Close angular#53620
rlmestre pushed a commit to rlmestre/angular that referenced this pull request Jan 26, 2024
…gular#53620)

Updates the template pipeline to allow for the root node of an `@empty` block to be content projected.

PR Close angular#53620
danieljancar pushed a commit to danieljancar/angular that referenced this pull request Jan 26, 2024
Expands the workaround from angular#52414 to allow for the root nodes of `@empty` blocks to be content projected.

Fixes angular#53570.

PR Close angular#53620
danieljancar pushed a commit to danieljancar/angular that referenced this pull request Jan 26, 2024
…gular#53620)

Updates the template pipeline to allow for the root node of an `@empty` block to be content projected.

PR Close angular#53620
amilamen pushed a commit to amilamen/angular that referenced this pull request Jan 26, 2024
Expands the workaround from angular#52414 to allow for the root nodes of `@empty` blocks to be content projected.

Fixes angular#53570.

PR Close angular#53620
amilamen pushed a commit to amilamen/angular that referenced this pull request Jan 26, 2024
…gular#53620)

Updates the template pipeline to allow for the root node of an `@empty` block to be content projected.

PR Close angular#53620
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: compiler Issues related to `ngc`, Angular's template compiler target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular 17 @empty block not working in nested propagated component
4 participants