[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.

posted @ 2017-04-25 02:45  Zhentiw  阅读(640)  评论(0编辑  收藏  举报