Answers for "how to reload called component in angular"

4

angular refresh page without reloading

this.router.navigate(['path/to'])
  .then(() => {
    window.location.reload();
  });
Posted by: Guest on January-06-2021
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 "how to reload called component in angular"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language