I am struggling to trigger a method while tab switching and navigating. I currently have it set up using 'click', but this only works when clicking on any element within the tab. My goal is to have the method activate upon tab switch. If anyone has encountered this issue before and knows a solution, please lend me your expertise.
Below is my template class:
<tabs>
<tab heading="It's First tab" (click)="firstTab()">
First tab content
</tab>
<tab heading="It's Second tab" (click)="secondTab()">
second tab content
</tab>
<tab heading="It's Third tab" (click)="thirdTab()">
third tab content
</tab>
</tabs>