首页 > 代码库 > [Angular] Enable router tracing

[Angular] Enable router tracing

To enable router tracing is really simple:

RouterModule.forRoot(ROUTES, { enableTracing: true })

When we define the root RouterModule, we can pass the option "enableTracing".

 

What we you get is when we navgiating thought app, we will get router events logs in the console.

技术分享

[Angular] Enable router tracing