I am trying to reload the current route in Angular5+ version when the click event is triggered. The following code i tried it worked but it will change the url in the address bar.
this.router.navigate([this.router.url]);
I am trying to reload the current route in Angular5+ version when the click event is triggered. The following code i tried it worked but it will change the url in the address bar.
this.router.navigate([this.router.url]);
You will have to use .reload();
window.location.reload();
or
location.reload();