Hi Takudzwa Mawarire,
Greetings from Syncfusion Support.
We have validated your reported scenario “Rendering Tabs using *ngFor” at our side and prepared a sample based on that using below highlighted code snippet.
app.component.html :
|
<e-tabitems>
<e-tabitem *ngFor="let tab of tabElements">
<ng-template #headerText>
<div>{{tab.header}} </div>
</ng-template>
<ng-template #content>
<div>{{tab.content}} </div>
</ng-template>
</e-tabitem>
</e-tabitems> |
app.component.ts:
|
public tabElements: any = [
{ header: "Tab1", content: "Twitter" },
{ header: "Tab2", content: "FaceBook" },
{ header: "Tab3", content: "WhatApp" },
]; |
Kindly try the above sample and let us know if you need further assistance.
Regards,
Balasubramanian S