Skip to content

refactor(core): stop producing ng-reflect attributes by default#60954

Closed
JeanMeche wants to merge 0 commit intoangular:mainfrom
JeanMeche:ng-reflect
Closed

refactor(core): stop producing ng-reflect attributes by default#60954
JeanMeche wants to merge 0 commit intoangular:mainfrom
JeanMeche:ng-reflect

Conversation

@JeanMeche
Copy link
Copy Markdown
Member

This commit deprecates ng-reflect-* attributes and updates the runtime to stop producing them by default. Please refactor application and test code to avoid relying on ng-reflect-* attributes.

To enable a more seamless upgrade to v20, we've added the provideNgReflectAttributes() function (can be imported from the @angular/core package), which enables the mode in which Angular would be producing those attribites (in dev mode only). You can add the provideNgReflectAttributes() function to the list of providers within the bootstrap call.

BREAKING CHANGE: Angular won't produce ng-reflect attributes by default anymore.

@angular-robot angular-robot bot added detected: breaking change PR contains a commit with a breaking change area: core Issues related to the framework runtime labels Apr 22, 2025
@ngbot ngbot bot added this to the Backlog milestone Apr 22, 2025
@JeanMeche JeanMeche added breaking changes and removed detected: breaking change PR contains a commit with a breaking change labels Apr 22, 2025
@angular-robot angular-robot bot added the detected: breaking change PR contains a commit with a breaking change label Apr 22, 2025
@JeanMeche JeanMeche force-pushed the ng-reflect branch 3 times, most recently from 89c8fa0 to 33370f6 Compare April 22, 2025 11:57
@JeanMeche JeanMeche changed the title refactor(core): stop producing ng-reflect attributes by default refactor(core): stop producing the ng-reflect attributes by default Apr 22, 2025
@JeanMeche JeanMeche changed the title refactor(core): stop producing the ng-reflect attributes by default refactor(core): stop producing ng-reflect attributes by default Apr 22, 2025
@JeanMeche JeanMeche marked this pull request as ready for review April 22, 2025 19:23
@JeanMeche
Copy link
Copy Markdown
Member Author

Prior to the sync CL, we'll need to get this one in /cl/750304845

@JeanMeche JeanMeche closed this Apr 23, 2025
@angular-robot angular-robot bot removed detected: breaking change PR contains a commit with a breaking change area: core Issues related to the framework runtime labels Apr 23, 2025
@ngbot ngbot bot removed this from the Backlog milestone Apr 23, 2025
@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 May 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants