I have a refresh button that is outside the primeNG datatable. How do I programmatically trigger to refresh the datatable?
something like this:
We can have small trick to update the dataTable here: we can recreating the div by adding *ngIf to the element to control its visibility by this it will update dataTable also.
visible: boolean = true; updateVisibility(): void { this.visible = false; }