Skip to content

Angular Material tabs only show content of initial tab #44

@jkarlsen

Description

@jkarlsen

I'm trying to use Angular Material tabs in a template, and finding that only the first/initial tab shows its content. When you switch to any other tab, the tab header switches correctly, but the content does not show.

I imported MatMaterialTabs like so:
import { MatTabsModule } from '@angular/material/tabs';
Then in the template I used the following markup, from one of the examples at the Angular Material site:
<mat-tab-group> <mat-tab label="First"> Content 1 </mat-tab> <mat-tab label="Second"> Content 2 </mat-tab> <mat-tab label="Third"> Content 3 </mat-tab> </mat-tab-group>

You can see the result on the Journal Search page of my test view.


The development tools show that the content of tabs 2 and 3 are not being loaded.

This is occurring in both proxy mode and when compiled. Any idea why this might be happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions