Answers for "angular reload page on route change"

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 reload component on route param change

constructor(private router: Router) {
    this.router.routeReuseStrategy.shouldReuseRoute = function() {
      return false;
    };
  }
Posted by: Guest on September-25-2020

Code answers related to "angular reload page on route change"

Code answers related to "Javascript"

Browse Popular Code Answers by Language