Using mat-tabs with ngFor, Initializing component twice #16397
Labels
area: material/tabs
needs investigation
A member of the team needs to do further investigation to determine the root cause
P4
A relatively minor issue that is not relevant to core functions
Example -
https://stackblitz.com/edit/components-issue-otvvf6
html of main component have -
```
<mat-tab-group [(selectedIndex)]="selectedTabIndex" (selectedTabChange)="onTabSelect($event)"> <mat-tab [label]="tab.value.title" *ngFor="let tab of tabs | keyvalue"> <ng-template matTabContent> <div *ngIf="(if user tab index selected show active users)"> <active-users></active-users> </div> </ng-template> </mat-tab> </mat-tab-group>
The text was updated successfully, but these errors were encountered: