Answers for "how to refresh to the same page in angular in guard"

1

refresh page angular

refresh(): void {
    window.location.reload();
}
Posted by: Guest on March-16-2021
0

route not getting refresh with different id in angular

const id= this.route.snapshot.paramMap.get('id');
this.router.navigateByUrl('/departments', { skipLocationChange: true }).then(() => {
    this.router.navigate([`departments/${id}/employees`]);
});
Posted by: Guest on November-09-2021

Code answers related to "how to refresh to the same page in angular in guard"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language