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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Yazhini MPPosted Dec 13, 2021, 6:00 AM
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.
Sachin SinghPosted Dec 11, 2021, 6:04 AM