[Table] Error when using ng-content
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
#### Bug, feature request, or proposal:
Bug
#### What is the expected behavior?
`md-table` should wait until the `ng-content` replaced.
#### What is the current behavior?
`md-table` throws ` Cannot read property 'getColumnsDiff' of undefined`.
#### What are the steps to reproduce?
Put `ng-content` inside `md-table`.
https://plnkr.co/edit/RpOncq9lbwPcjAGjXSyR?p=preview
#### What is the use-case or motivation for changing an existing behavior?
Anyone that want to create a component with configurable `md-table` inside cannot do it.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: `4.4.0-RC.0` in the plunker, but this is not working with any version.
Material: `2.0.0-beta.10`
Guía de contribución
Línea de trabajo
Empieza reproduciendo el fallo en el Plunker enlazado con ng-content dentro de md-table y, después, rastrea cuándo accede md-table a getColumnsDiff con respecto al reemplazo del contenido proyectado. Se considerará terminado cuando md-table espere al contenido proyectado y deje de lanzar el error de propiedad undefined al usarse dentro de un componente configurable.
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
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 58/100