Windown reload angular code example
Example 1: angular 8 ts refresh page
refresh(): void {
window.location.reload();
}
Example 2: angular 8 ts refresh page
<button (click)="refresh()">Refresh</button>
refresh(): void {
window.location.reload();
}
<button (click)="refresh()">Refresh</button>