provideRoutes
Registers a DI provider for a set of routes.
使用说明
@NgModule({
imports: [RouterModule.forChild(ROUTES)],
providers: [provideRoutes(EXTRA_ROUTES)]
})
class MyNgModule {}
Registers a DI provider for a set of routes.
@NgModule({
imports: [RouterModule.forChild(ROUTES)],
providers: [provideRoutes(EXTRA_ROUTES)]
})
class MyNgModule {}