Answer the question
In order to leave comments, you need to log in
Is it possible to render components in mat tab?
For some reason, this approach to show components in tabs gives me a buffer overflow - and without errors:
<mat-tab-group
animationDuration="0ms"
[selectedIndex]="selectedTabIndex"
(selectedTabChange)="tabChanged($event)"
>
<mat-tab *ngFor="let order of getorderVersionsService()">
<ng-template mat-tab-label>
{{ order.versionid }}
</ng-template>
<!-- Content-->
<ng-template matTabContent>
<app-order-definition [orderDefinition]="order"></app-order-definition>
</ng-template>
</mat-tab>
</mat-tab-group>
<app-order-definition [orderDefinition]="order"></app-order-definition>
Answer the question
In order to leave comments, you need to log in
Easy to check
https://stackblitz.com/edit/angular-selecting-matt...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question