tabs: nested mat-tab-group with custom label template puts label on parent tab too
- 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?
Should be able to use a custom tab label template in a sub tab but not in a parent tab.
#### What is the current behavior?
Having a mat-tab-group within a mat-tab-group with the child mat-tab-group having mat-tab items with a custom tab template (using ng-template) puts the custom tab content on the parent tab too.
#### What are the steps to reproduce?
StackBlitz repro: https://stackblitz.com/edit/angular-7njwul
#### What is the use-case or motivation for changing an existing behavior?
Not possible to use a custom tab label template on child tabs without breaking the parent tabs.
#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Browsers - all
Material: 5.2.4 (+?)
Angular 5
#### Is there anything else we should know?
Nope
Guía de contribución
Línea de trabajo
Comienza ejecutando la reproducción vinculada de StackBlitz con el mat-tab-group anidado, los elementos mat-tab secundarios, la plantilla de etiqueta personalizada y ng-template. Rastrea cómo se aplica la etiqueta personalizada a las pestañas principales y secundarias, y verifica después que el contenido personalizado aparezca únicamente en las pestañas secundarias sin afectar a las pestañas principales.
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