Isn’t it possible to add simple click event on dynamically created tabs?
– no i think, it isn’t possible, but you can use (selectedTabChange) on <mat-tab-group> as:
<mat-tab-group (selectedTabChange)="yourFn($event)">
The event-Object holds an index, so you can do something like this:
yourFn($event){
this.fetchAccounts(this.banks[$event.index].id)
}
Example:
https://stackblitz.com/edit/angular-xurhan