<ngb-tabset>
<ngb-tab
[attr.id]="tab.id"
*ngFor="let tab of tabs">
<ng-template ngbTabTitle>
<span>{{ tab.title }}</span>
<span
class="close"
(click)="onClosiClick(tab)">
×
</span>
</ng-template>
<ng-template ngbTabContent>Content of {{ tab.title }}</ng-template>
</ngb-tab>
</ngb-tabset>