I have mat-table and select button above mat-table. Once I click select butotn, I am pulling datas from web API and I want data to be viewed in table. But clever!! Angular team does not support this or not documented. Very classical things are not supported in angular-Material components.
Let me ask question:
.html
<button class="btn btn-primary"
(click)="list()">
Select
</button>
<mat-table [dataSource]="dataSource1" class="mat-elevation-z8">
......
</mat-table>
.ts
list() {
dataSource1 = .....
}
How can I provide this ? Table is not rendered after datas are successfully assigned to dataSource1 in list() method. What should I do to rerender