function
Enables logging of all internal navigation events to the console. Extra logging might be useful for debugging purposes to inspect Router event sequence.
withDebugTracing(): DebugTracingFeature
There are no parameters.
DebugTracingFeature
: A set of providers for use with provideRouter
.
Basic example of how you can enable debug tracing:
const appRoutes: Routes = []; bootstrapApplication(AppComponent, { providers: [ provideRouter(appRoutes, withDebugTracing()) ] } );
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/router/withDebugTracing