Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
5+8 =