Is there a way to navigate between tabs using previous and next buttons in Angular TypeScript? I have provided some sample code below, but I am unsure how to make the buttons sync with the tabs.
Sample code:
<div>
<ng-container>
<tabset>
<tab>
<ng-template tabHeading>
<span title="Flash mobile">Flash</span>
</ng-template>
<p> Flashing mobile </p>
</tab>
<tab>
<ng-template tabHeading>
<span title="Restore mobile">Restore</span>
</ng-template>
<p> Restore mobile </p>
</tab>
</tabset>
</ng-container>
</div>
<div>
<button class="btn" (click)="updatePrev()"> Previous </button>
<button class="btn" (click)="updateNext()"> Next </button>
</div>