provideRoutes
function
npm Package | @angular/router |
---|---|
Module | import { provideRoutes } from '@angular/router'; |
Source | router/src/router_module.ts |
function provideRoutes(routes: Routes): any;
How To Use
@NgModule({ imports: [RouterModule.forChild(ROUTES)], providers: [provideRoutes(EXTRA_ROUTES)] }) class MyNgModule {}
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/router/provideRoutes