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