ngx-easy-table
ngx-easy-table copied to clipboard
Table not updating when in dynamic loaded component
Hi, I have a dynamic loaded component which contains table. when I update the data, table is not updating. Kindly suggest some fix.
also sometimes when we update the data variable it does not reflect in table.
Have you tried something like: this.data = [... this.data]
?
Have you tried something like:
this.data = [... this.data]
?
Yes I have tried this way as well
@anuj509 Without an example I can't help much, but I found one issue. When you use ngIf:
<ngx-table [configuration]="configuration" #table [data]="data" [columns]="columns" *ngIf="something"></ngx-table>
Please try to set static to false:
@ViewChild('table', { static: false }) table: APIDefinition;
I've fixed demo page, because it was causing an error indeed.
If this is not a fix for you, please create a new issue with some code. I'll help.