-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
feat(platform-browser): enable removal of styles on component destroy by default #51571
feat(platform-browser): enable removal of styles on component destroy by default #51571
Conversation
91bca8b
to
67ece0a
Compare
Caretaker note: this needed to be landed in combination with http://cl/561303540 as a patch need to be deleted. |
… by default This change aligns the settings between G3 and P3 as `REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT` is already set to `true` internally. BREAKING CHANGE: `REMOVE_STYLES_ON_COMPONENT_DESTROY` default value is now `true`. This causes CSS of components to be removed from the DOM when destroyed. You retain the previous behaviour by providing the `REMOVE_STYLES_ON_COMPONENT_DESTROY` injection token. ```ts import {REMOVE_STYLES_ON_COMPONENT_DESTROY} from '@angular/platform-browser'; ... providers: [{ provide: REMOVE_STYLES_ON_COMPONENT_DESTROY, useValue: false, }] ```
67ece0a
to
a70e23b
Compare
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
This PR was merged into the repository by commit c340d6e. |
… by default (angular#51571) This change aligns the settings between G3 and P3 as `REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT` is already set to `true` internally. BREAKING CHANGE: `REMOVE_STYLES_ON_COMPONENT_DESTROY` default value is now `true`. This causes CSS of components to be removed from the DOM when destroyed. You retain the previous behaviour by providing the `REMOVE_STYLES_ON_COMPONENT_DESTROY` injection token. ```ts import {REMOVE_STYLES_ON_COMPONENT_DESTROY} from '@angular/platform-browser'; ... providers: [{ provide: REMOVE_STYLES_ON_COMPONENT_DESTROY, useValue: false, }] ``` PR Close angular#51571
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. |
… by default (angular#51571) This change aligns the settings between G3 and P3 as `REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT` is already set to `true` internally. BREAKING CHANGE: `REMOVE_STYLES_ON_COMPONENT_DESTROY` default value is now `true`. This causes CSS of components to be removed from the DOM when destroyed. You retain the previous behaviour by providing the `REMOVE_STYLES_ON_COMPONENT_DESTROY` injection token. ```ts import {REMOVE_STYLES_ON_COMPONENT_DESTROY} from '@angular/platform-browser'; ... providers: [{ provide: REMOVE_STYLES_ON_COMPONENT_DESTROY, useValue: false, }] ``` PR Close angular#51571
This change aligns the settings between G3 and P3 as
REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT
is already set totrue
internally.BREAKING CHANGE:
REMOVE_STYLES_ON_COMPONENT_DESTROY
default value is nowtrue
. This causes CSS of components to be removed from the DOM when destroyed. You retain the previous behaviour by providing theREMOVE_STYLES_ON_COMPONENT_DESTROY
injection token.