I have component with separated file of routing settings:
import { NgModule } from \'@angular/core\';
import { Routes,
As the comments in the most accepted answer suggest, this enableTracing doesn't work in the forChild method. A simple work around is to subscribe to all routing events in AppModule like so:
export class AppModule {
constructor(
private readonly router: Router,
) {
router.events
.subscribe(console.log)
}
}