[Table] Error when using ng-content
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### 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`
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire l’échec dans le Plunker lié avec ng-content à l’intérieur de md-table, puis retracez le moment où md-table accède à getColumnsDiff par rapport au remplacement du contenu projeté. Le travail est terminé lorsque md-table attend le contenu projeté et ne lève plus l’erreur de propriété undefined lorsqu’il est utilisé dans un composant configurable.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 58/100