This is component.html part. How can I change to next tab from button of tab1 to tab2 and tab2 to tab 3 and so on?
<mat-tab-group>
<mat-tab label="First"> Content 1
<button (click)=?>next</button>
</mat-tab>
<mat-tab label="Second"> Content 2
<button (click)=?>previous</button>
<button (click)=?>next</button>
</mat-tab>
<mat-tab label="Third"> Content 3
<button (click)=?>previous</button>
<button (click)=?>submit</button>
</mat-tab>
</mat-tab-group>