catch reload page angular code example
Example 1: angular refresh page without reloading
this.router.navigate(['path/to'])
.then(() => {
window.location.reload();
});
Example 2: refresh page angular
refresh(): void {
window.location.reload();
}