Answers for "how to navigate to url and refresh angular 8"

0

navigate to route and refresh angular 6

this.router.navigate(['path/to'])
  .then(() => {
    window.location.reload();
  });
Posted by: Guest on April-29-2020
1

angular change url without reload

You could use location.go(url) which will basically change your url, without change in route of application.

NOTE this could cause other effect like redirect to child route from the current route.

Related question which describes location.go will not intimate to Router to happen changes.
Posted by: Guest on March-22-2021

Code answers related to "how to navigate to url and refresh angular 8"

Code answers related to "Javascript"

Browse Popular Code Answers by Language