mat-filtering/mat-sort not work correctly when use ngif in mat-table parent

前端 未结 5 1847
甜味超标
甜味超标 2021-02-08 13:02

Note that paging/sort not work correctly. Paging does not show the number of elements it is showing and sorting does not work, but if you delete the line in the html file

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-08 13:13

    Adding tag in your html code and adding mat-sort-header="fieldname" you can get resolved.

提交回复
热议问题