Spec-Zone.ru › Angular

withDebugTracing

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

provideRouter

API

function withDebugTracing(): DebugTracingFeature;
@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())
    ]
  }
);

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/router/withDebugTracing

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API