Can you please get me angular mat table code to create table with rows as columns and Viceversa.
I mean in the row 1st column should have label name and other columns should have data for that respective control(label).
Can you please get me angular mat table code to create table with rows as columns and Viceversa.
I mean in the row 1st column should have label name and other columns should have data for that respective control(label).
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Dec 11, 2021, 1:04 AM EST
Yazhini MP128 reputationPosted Dec 13, 2021, 1:00 AM EST
You can give the required data structure by inverting the table in a ngOnInit() method in the class, and then iterating over the column list in the HTML to give the required columns.