Open radha89 opened 7 years ago
Try this var data = []; this.source.load(data);
I do this this: <ng2-smart-table [settings]="settings_requisition" (deleteConfirm)="deleteRecord($event)" (createConfirm)="addRecord($event)" (editConfirm)="updateRecord($event)" class="responsive-table" [source]="data_requisition">
data_requisition=[]; //On the compenent.ts
and then just call the variable like this: this.data_requisition=[]; when close a modal.
I'm trying to implement a 'Delete all' button in my component so I can empty the table and print 'no data found' message. I tried to call
this.source.empty()
which works when I logsource.data
to the console and it appears empty but my table still has data in it. Is there a fix for this?