mat tab group change

Solutions on MaxInterview for mat tab group change by the best coders in the world

showing results for - "mat tab group change"
Rafael
12 Jul 2018
1 <mat-tab-group  [(selectedIndex)]="selectedTabIndex" (selectedTabChange)="onTabChanged($event);">
2      <mat-tab formArrayName="staffMembers" #pft  *ngFor="let staffMember of formData.get('staffMembers').controls; let i = index">
3        <div [formGroupName]="i">
4          <ng-template mat-tab-label>
5            {{staffMember.controls.staffMemberId.value}} <a>
6          </a>
7          </ng-template>
8            <div class="form-group">
9              <label for="name"> Name</label>
10              <input type="text" class="form-control" id="name" formControlName="name">
11           </div> 
12        </div>
13    </mat-tab>
14 </mat-tab-group>
15
similar questions
bootstrap tabs multiple