provideRoutes()

Stable Function

What it does

Registers routes.

How to use

@NgModule({
  imports: [RouterModule.forChild(ROUTES)],
  providers: [provideRoutes(EXTRA_ROUTES)]
})
class MyNgModule {}

Class Export

export provideRoutes(routes: Routes) : any

exported from @angular/router/index defined in @angular/router/src/router_module.ts

doc_Angular
2016-10-06 09:46:53
Comments
Leave a Comment

Please login to continue.