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