Answers for "reload component from ts angular"

0

angular 8 ts refresh page

refresh(): void {
    window.location.reload();
}
Posted by: Guest on November-25-2020
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

angular 8 ts refresh page

<button (click)="refresh()">Refresh</button>
Posted by: Guest on November-25-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language