I am trying to get the mat-table
sorting to work locally, and while I can get the data to show up as expected, clicking on the header row does not do the sortin
For me replacing *ngIf with [hidden] attribute for mat-table tag worked. How to post this one as a bug to Angular Material community?
I spent hours on this issue. After reading through a number of threads, here are the steps I did.
MatSortModule
. *ngIf
. Change it to [hidden]
as @zerg recommended. (I don't understand why)Hope this helps.