mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit updates the table of contents functionality to clean up correctly whenever the user navigates to other pages and nodes are removed from the DOM. Currently, calling `renderComponent` with the `TableOfContents` keeps creating a new table of contents component without removing the previous one, as they are created manually. This leads to memory leaks because the components cannot be collected properly, even if the user navigates to the home page where there is no TOC component. PR Close #58034 |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| index.ts | ||
| inject-async.service.ts | ||
| navigation-state.service.ts | ||
| search.service.ts | ||
| table-of-contents-loader.service.spec.ts | ||
| table-of-contents-loader.service.ts | ||
| table-of-contents-scroll-spy.service.spec.ts | ||
| table-of-contents-scroll-spy.service.ts | ||