xxxxxxxxxx
reloadCurrentRoute() {
let currentUrl = this.router.url;
this.router.navigateByUrl('/', {skipLocationChange: true}).then(() => {
this.router.navigate([currentUrl]);
});
}
xxxxxxxxxx
at template use event buinding:
(click)="reloadCurrentPage()"
inside the .ts file, add the function,
reloadCurrentPage() {
window.location.reload();
}
xxxxxxxxxx
<a href="javascript:void(0);" (click)="yourClickEvent();">A Tag</a>