Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

refresh current component angular

  reloadCurrentRoute() {
    let currentUrl = this._router.url;
    this._router.navigateByUrl('/', {skipLocationChange: true}).then(() => {
        this._router.navigate([currentUrl]);
        console.log(currentUrl);
    });
  }
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #refresh #current #component #angular
ADD COMMENT
Topic
Name
1+3 =