Hi Techlandandyzhang,
We have modified your sample by mapping the tab items to their elements like the below code snippet.
let
tabObj = (document.querySelector(".e-tab") as
any).ej2_instances[0];
let
tabElements = [{ header: { 'text':'Test1' }, content:'1', cssClass:'classa' },
{ header: { 'text':'Test2' }, content:'2', cssClass:'classb' },
{ header: { 'text':'Test3' }, content:'3', cssClass:'classc' },
];
tabObj.items = tabElements;
Sample: https://stackblitz.com/edit/angular-wahcmj-quhnhp?file=app.component.ts
Kindly try the above sample and let us know if this meets your requirement.
Regards,
Ruksar Moosa Sait