bug(mat-table): matFooterCellDef not showing updated value when changed
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### 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
Guía de contribución
Línea de trabajo
Comienza con la reproducción de StackBlitz en src/app/test-table.component.ts y verifica cómo se renderizan las actualizaciones de datos dinámicos de mat-table. Sigue las rutas de matHeaderCellDef y matFooterCellDef y, después, confirma la corrección comprobando que los valores modificados del encabezado y del pie de página se vuelvan a renderizar junto con el contenido de matCellDef.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100