disable mat tab code example
Example: Disable Mat Tab when it's inactive
<mat-tab-group>
<mat-tab #tab [disabled]='!tab.isActive' *ngFor="let subject of subjects" [label]="subject.name">
{{ subject.name }}
</mat-tab>
</mat-tab-group>
<mat-tab-group>
<mat-tab #tab [disabled]='!tab.isActive' *ngFor="let subject of subjects" [label]="subject.name">
{{ subject.name }}
</mat-tab>
</mat-tab-group>