Skip to content Skip to sidebar Skip to footer

Angular 6 - Sorting All Table Columns Works On Only Two Columns Instead Of All

I'm trying to sort a MatTable with MatSort of angular material but the problem is I can sort only two columns of my MatTable but what I want is to sorting all my columns and I don'

Solution 1:

This answer solve my problem.

The matColumnDef property must have the same name as your model

Post a Comment for "Angular 6 - Sorting All Table Columns Works On Only Two Columns Instead Of All"