I have a refresh button that is outside the primeNG datatable. How do I programmatically trigger to refresh the datatable?
something like this:
The Angular form guide contains a small trick that could be used as a workaround, it consists on recreating the dom by adding *ngIf to the element to control its visibility
*ngIf
visible: boolean = true; updateVisibility(): void { this.visible = false; setTimeout(() => this.visible = true, 0); }