Hi
I have below Typescript for columns. I want to display data in Dynamic Table Component.
TypeScript
this.columns = [
// { title: "Id", name: "empId" , visible: true },
{ title: "Name", name: "empName" , visible: true },
{ title: "Email", name: "empEmail" , visible: true },
]Below is the Data
: {empId: 1512, empName: 'Mark1', empContactNo: '6754673254', empAltContactNo: '8762347483', empEmail: '[email protected]', …}
Code
{{ element[item.name] }}Thanks

Vishal JoshiRank #377 · 6.7K reputationPosted Jul 4, 2024, 5:09 AM EDT
Hello,
Can you share the whole component code. because I don't see matCellDef directive here in this code.
Or else share the detail about error to identify the issue.
Thanks
Ramco RamcoRank #462 · 5.4K reputationPosted Jul 5, 2024, 12:23 AM EDT
Hi Vishal
Resolved.
Thanks