How to trace routing in Angular 2?

后端 未结 3 1499
闹比i
闹比i 2020-12-08 06:11

I have component with separated file of routing settings:

import { NgModule } from \'@angular/core\';
import { Routes,         


        
3条回答
  •  醉酒成梦
    2020-12-08 07:09

    You can pass in a second argument with options:

    imports: [
        RouterModule.forRoot(
          routes,
          { enableTracing: true } // <-- debugging purposes only
        )
    ]
    

提交回复
热议问题