Open
Description
Reproduction
Use StackBlitz to reproduce this issue: https://stackblitz.com/edit/angular-uwdzcb
Any headers not specified upon initial rendering are not added. If a matHeaderRowDef is added later on during the lifetime of the component, it will never show up. It seems like the table renderer needs to be altered to keep checking for changes to the present matHeaderRowDef instances.
Steps to reproduce:
- Click the "Click to Add Rows" text
- Look at table head rows
Expected Behavior
A second header row should be visible, with a column titled "Name of the Purchased Item"
Actual Behavior
The second header row is not recognized and rendered, even if renderRows() is called.
Environment
- Angular:9.1.3
- CDK/Material: 9.2.1
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): gLinux