mat tab disable active 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>