Open
Description
MatSortHeader directive (mat-sort-header) causing memory leak for component
Reproduction
Use StackBlitz to reproduce your issue:
- Components MatSortHeader: https://stackblitz.com/edit/angular-ivy-gy65g1
Steps to reproduce:
- Click the AngularMaterialTable router link.
- Click the DummyPage router link
- take a memory snapshot of dummy page.
- search the snapshot with "AngularMaterialTableComponent"
Expected Behavior
AngularMaterialTableComponent class should not be present in the memory snapshot
Actual Behavior
AngularMaterialTableComponent class present in the memory snapshot
Environment
- Angular: 10, 11
- CDK/Material: 10, 11
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10