Skip to content

refactor(compiler): check that ng-container don't have class bindings - #71844

Merged
thePunderWoman merged 1 commit into
angular:mainfrom
JeanMeche:g3-ngcontainer-class
Nov 10, 2026
Merged

thePunderWoman merged 1 commit into
angular:mainfrom
JeanMeche:g3-ngcontainer-class

Conversation

@JeanMeche

Copy link
Copy Markdown
Member

This is the same change as #70808 but for g3 only due to its breaking nature.

@JeanMeche
JeanMeche requested a review from mattrbeck November 5, 2026 16:14
@angular-robot angular-robot Bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Nov 5, 2026
@ngbot ngbot Bot added this to the Backlog milestone Nov 5, 2026
@JeanMeche

Copy link
Copy Markdown
Member Author

TGP came back green. This is good to go.

@JeanMeche JeanMeche added the target: patch This PR is targeted for the next patch release label Nov 5, 2026
`Attribute bindings are not supported on ng-container. Use property bindings instead.`,
bound.sourceSpan,
);
// TODO(v23): Enable this breaking change

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.

✨ The tests from #70808 were dropped here. Could we bring them into r3_template_transform_spec.ts as xit with a TODO(v23)? That's what the CSS-variable change did (shadow_css_spec.ts, dom_renderer_spec.ts), and it makes the v23 switch-over mechanical.

@JeanMeche JeanMeche Nov 7, 2026 •

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.

Done! Added the tests from #70808 into r3_template_transform_spec.ts as xit with // TODO(v23): Enable this breaking change.

This is the same change as angular#70808 but for g3 only due to its breaking nature.
@Flarette

Flarette commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Same as my note on #70808: this is one case of #71881, which #71882 and #71884 cover as NG8031. Needs reconciliation with #71882 and #71884 before merge.

@JeanMeche JeanMeche added the action: merge The PR is ready for merge by the caretaker label Nov 10, 2026
@thePunderWoman
thePunderWoman merged commit 5cd01d6 into angular:main Nov 10, 2026
25 checks passed
@thePunderWoman

Copy link
Copy Markdown
Contributor

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

@JeanMeche
JeanMeche deleted the g3-ngcontainer-class branch November 11, 2026 20:39
@JeanMeche JeanMeche mentioned this pull request Nov 24, 2026
30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

4 participants