после использования некоторых функций из этого выпуска: https://github.com/angular/angular/issues/13831
constructor(private router: Router){
// override the route reuse strategy
this.router.routeReuseStrategy.shouldReuseRoute = function(){
return false;
}
this.router.events.subscribe((evt) => {
if (evt instanceof NavigationEnd) {
// trick the Router into believing it's last link wasn't previously loaded
this.router.navigated = false;
// if you need to scroll back to top, here is the right place
window.scrollTo(0, 0);
}
});
}
Мой компонент больше не показывает никаких данных из бэкэнда. Я даже переключил ветку git, и кажется, что это повсеместно уничтожило компонент. В чем проблема?