79555390

Date: 2025-04-04 13:08:06
Score: 5
Natty: 4
Report link

I have the same problem, I tried:

dataSource = computed(() => new MatTableDataSource(this.data()))

In my html file I have this:

table mat-table [dataSource]="dataSource()"...

It works for the data but not for the Sort...

So I tried:

ngAfterViewInit(): void { this.dataSource().sort = this.sort; }

But that does not work either...

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Nin0uille64