I\'m using angular 7 with angular-datatables. I\'m tring to define a \"rerender\" button in order to reload data like in this example.
I don\'t understand what shoul
Found an answer that worked for me: this is the source site
rerender(): void {
this.dtElement.dtInstance.then((dtInstance: DataTables.Api) => {
// Destroy the table first
//debugger;
var table = $('#favoriteTable').DataTable();
$('#tableDestroy').on('click', function () {
table.destroy();
});
dtInstance.destroy();
this.fn_getFavoriteTables();
});
}