Просто обходной путь, если onSameUrlNavigation: 'reload'
не сработало!
HTML-код:
<div *ngFor="let data of projects">
<div (click)="navigate(data)">
{{data.project_name}}
</div>
</div>
Код TS:
import {Router} from '@angular/router';
......
......
constructor(private router: Router) {}
navigate(data){
this.router.navigateByUrl('/DummyRoute', { skipLocationChange: true }).then(() =>
this.router.navigate(['/projects/' + data.project_id])
);
}