angular/packages/platform-browser/test/dom
Alan Agius c340d6e044 feat(platform-browser): enable removal of styles on component destroy by default (#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 #51571
2023-08-30 14:42:02 +00:00
..
events refactor(platform-browser): remove #9100 todos. (#49406) 2023-06-21 11:43:45 -07:00
dom_renderer_spec.ts feat(platform-browser): enable removal of styles on component destroy by default (#51571) 2023-08-30 14:42:02 +00:00
shadow_dom_spec.ts refactor(platform-browser): Remove BrowserDetection (#50411) 2023-05-30 13:06:28 -07:00
shared_styles_host_spec.ts fix(platform-browser): set nonce attribute in a platform compatible way (#49624) 2023-03-29 09:26:54 -07:00