Answers for "reload specific part of the page angular"

4

How to Reload a Component in Angular

reloadComponent() {
  let currentUrl = this.router.url;
      this.router.routeReuseStrategy.shouldReuseRoute = () => false;
      this.router.onSameUrlNavigation = 'reload';
      this.router.navigate([currentUrl]);
  }
Posted by: Guest on September-25-2020
0

reload sub component angular

this.router.navigateByUrl('/RefreshComponent', { skipLocationChange: true }).then(() => {
    this.router.navigate(['Your actualComponent']);
});
Posted by: Guest on March-18-2021

Code answers related to "reload specific part of the page angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language