MatSort and MatPaginator not being initialized using @ViewChild and ngAfterViewInit if inside *ngIf

前端 未结 0 994
借酒劲吻你
借酒劲吻你 2020-12-28 19:54

I am using a mat table with paginator and sort within an *ngIf. The table data is retrieved using an API.

This is the component\'s typescript code:

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题