Answers for "reload component on route change angular"

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language