-
Notifications
You must be signed in to change notification settings - Fork 26.2k
refactor(core): stop producing ng-reflect
attributes by default
#60973
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
Conversation
BREAKING CHANGE: 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.
Previously at #60954 |
Caretaker note: we'll need to get cl/750304845 in beforehand. |
* they are deprecated and only present for backwards compatibility. Angular will stop | ||
* producing them in one of the future versions. | ||
* | ||
* @publicApi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open question: should we deprecate it immediately? I guess we don't want people to use it in a longer run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually really like this idea. Have we ever released a new api as deprecated before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just left a question about deprecating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
This PR was merged into the repository by commit c2987d8. The changes were merged into the following branches: main |
BREAKING CHANGE:
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 onng-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 theprovideNgReflectAttributes()
function to the list of providers within the bootstrap call.