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