angular material pagination not working for large data angular material code example
Example: settign datasource to paginator only works with setTimeout
@ViewChild(MatSort) set matSort(sort: MatSort) {
this.dataSource.sort = sort;
}
@ViewChild(MatSort) set matSort(sort: MatSort) {
this.dataSource.sort = sort;
}