You should be able to new up the MatTableDataSource once at the class level and then use the data setter in ngOnInit. dataSource = new MatTableDataSource.
確定! 回上一頁