CrazySean007
CrazySean007

Reputation: 51

How to put mat-table inside mat-expansion in angular10

I want to do a list of users and when clicking on the user the corresponding addresses table can be expanded. But the thing is that when I clicked on it it shows blank. Does anyone konw what's the problem?

Here is the reproduce link: Stackblitz

This is the problem screenshot:

table contents are not displayed

Upvotes: 0

Views: 58

Answers (1)

oz1985oz
oz1985oz

Reputation: 417

Hi you forgot a few things like displayedColumns property. You forgot to put matColumnDef in the ng-container. You insert mat-sort-header without using it right.

Here is a quick fixed stackblitz

Upvotes: 1

Related Questions