0

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]);
G Pandurengan
  • 129
  • 2
  • 9

1 Answers1

0

You will have to use .reload();

 window.location.reload();

or

location.reload();
Patricio Vargas
  • 5,236
  • 11
  • 49
  • 100