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

前端 未结 5 1842
甜味超标
甜味超标 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

    Just adding static:false instead true, working fine @ViewChild(MatSort, {static: false})e }) public sortaddEpisode: MatSort;

提交回复
热议问题