bug(mat-table): matFooterCellDef not showing updated value when changed
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
_No response_
### Description
When creating dynamic tables using mat-table and it's directives, I expect to pass data to the dynamic component and it to rerender everything based on data.
```html
{{ column.header }}
{{ column.cell(row) }}
{{ column.footer }}
```
### Reproduction
Reproduction: https://stackblitz.com/edit/angular-ivy-6urypw?file=src%2Fapp%2Ftest-table.component.ts
### Expected Behavior
I expect to see an updated table based on the data I pass to it, and not only stuff inside matCellDef, but also inside matFooterCellDef and matHeaderCellDef.
### Actual Behavior
Updating data for matCellDef works, but it doesn't re-render and update data inside matFooterCellDef and matHeaderCellDef.
### Environment
Angular v14 and v15
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con la riproduzione StackBlitz in src/app/test-table.component.ts e verifica come vengono renderizzati gli aggiornamenti dei dati dinamici di mat-table. Segui i percorsi di matHeaderCellDef e matFooterCellDef, quindi conferma la correzione verificando che i valori modificati dell'intestazione e del piè di pagina vengano renderizzati nuovamente insieme al contenuto di matCellDef.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100