refactor(core): stop producing ng-reflect attributes by default#60973
refactor(core): stop producing ng-reflect attributes by default#60973JeanMeche wants to merge 1 commit intoangular:mainfrom
ng-reflect attributes by default#60973Conversation
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.
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.
I actually really like this idea. Have we ever released a new api as deprecated before?
pkozlowski-opensource
left a comment
There was a problem hiding this comment.
LGTM. Just left a question about deprecating
thePunderWoman
left a comment
There was a problem hiding this comment.
reviewed-for: public-api
AndrewKushnir
left a comment
There was a problem hiding this comment.
Reviewed-for: public-api
|
This PR was merged into the repository by commit c2987d8. The changes were merged into the following branches: main |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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/corepackage), 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.