Answers for "at refresh angular return on root"

2

refresh current component angular

reloadCurrentRoute() {
    let currentUrl = this._router.url;
    this._router.navigateByUrl('/', {skipLocationChange: true}).then(() => {
        this._router.navigate([currentUrl]);
        console.log(currentUrl);
    });
  }
Posted by: Guest on December-04-2020

Code answers related to "at refresh angular return on root"

Code answers related to "Javascript"

Browse Popular Code Answers by Language