8000 refactor(core): stop producing `ng-reflect` attributes by default by JeanMeche · Pull Request #60954 · angular/angular · GitHub
[go: up one dir, main page]

Skip to content

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

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

Closed
wants to merge 0 commits into from

Conversation

JeanMeche
Copy link
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0