mode_edit codeAPI / @angular/router/upgradeRouterUpgradeInitializerlinkconst 试验性的Creates an initializer that in addition to setting up the Angular router sets up the ngRoute integration.const RouterUpgradeInitializer: { provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>; multi: boolean; useFactory: ...;说明link@NgModule({ imports: [ RouterModule.forRoot(SOME_ROUTES), UpgradeModule ], providers: [ RouterUpgradeInitializer ] }) export class AppModule { ngDoBootstrap() {} }