Skip to content

fix(compiler): capture data bindings for content projection purposes in blocks - #54876

Closed
crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:pipeline-content-projection
Closed

crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:pipeline-content-projection

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Fixes a regression in the template pipeline where data bindings weren't being captured for content projection purposes.

Fixes #54872.

…in blocks

Fixes a regression in the template pipeline where data bindings weren't being captured for content projection purposes.

Fixes angular#54872.
}

let ifCaseI18nMeta = undefined;
let ifCaseI18nMeta: i18n.BlockPlaceholder|undefined = undefined;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Unrelated change, I just saw that vscode was flagging this as an error.

true, false, null, asMessage(attr.i18n), attr.sourceSpan));
}

// Also collect the inputs since they participate in content projection as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For reference, this is where the TDB was constructing the attributes array and this is the code that was capturing both the static attributes and the inputs.

@crisbeto
crisbeto requested a review from dylhunn March 15, 2024 13:20
@crisbeto
crisbeto marked this pull request as ready for review March 15, 2024 13:20
@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 Mar 15, 2024
@ngbot ngbot Bot added this to the Backlog milestone Mar 15, 2024

@pkozlowski-opensource pkozlowski-opensource left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Reviewed-for: fw-core

@dylhunn dylhunn 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: fw-compiler

@dylhunn

dylhunn commented Mar 15, 2024

Copy link
Copy Markdown
Contributor

(thanks for fixing this issue @crisbeto!)

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 15, 2024
alxhub pushed a commit that referenced this pull request Mar 15, 2024
…in blocks (#54876)

Fixes a regression in the template pipeline where data bindings weren't being captured for content projection purposes.

Fixes #54872.

PR Close #54876
@alxhub

alxhub commented Mar 15, 2024

Copy link
Copy Markdown
Member

This PR was merged into the repository by commit 879bd80.

@alxhub alxhub closed this in 879bd80 Mar 15, 2024
@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 Apr 15, 2024
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: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynamically generated content is not projected

4 participants