• Overview
@angular/router

withDebugTracing

function
stable

Enables logging of all internal navigation events to the console. Extra logging might be useful for debugging purposes to inspect Router event sequence.

API

@returnsDebugTracingFeature

A set of providers for use with provideRouter.

Usage Notes

Basic example of how you can enable debug tracing:

const appRoutes: Routes = [];
bootstrapApplication(AppComponent,
  {
    providers: [
      provideRouter(appRoutes, withDebugTracing())
    ]
  }
);
Jump to details