Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

angular reload component

reloadCurrentRoute() {
    let currentUrl = this.router.url;
    this.router.navigateByUrl('/', {skipLocationChange: true}).then(() => {
        this.router.navigate([currentUrl]);
    });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #reload #component
ADD COMMENT
Topic
Name
8+2 =