5 lines
4.3 KiB
JSON
5 lines
4.3 KiB
JSON
{
|
|
"id": "api/router/provideRoutes",
|
|
"title": "provideRoutes",
|
|
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/router\", \"name\": \"@angular/router\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/router/provideRoutes\", \"name\": \"provideRoutes\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/router\">@angular/router</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/router/src/router_module.ts?message=docs(router)%3A%20describe%20your%20change...#L197-L219\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/router/src/router_module.ts#L197-L219\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"provideroutes\">provideRoutes<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/provideRoutes#provideroutes\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label function\">function</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>Registers a <a href=\"guide/glossary#provider\">DI provider</a> for a set of routes.</p>\n\n \n </section>\n \n \n \n\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"> <span class=\"member-name\"><a href=\"api/router/provideRoutes\" class=\"code-anchor\">provideRoutes</a></span>(routes: <a href=\"api/router/Routes\" class=\"code-anchor\">Routes</a>): any</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table function-overload-parameters\">\n <tbody>\n \n <tr class=\"function-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>routes</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/router/Routes\" class=\"code-anchor\">Routes</a></code></td>\n <td class=\"param-description\">\n <p>The route configuration to provide.</p>\n\n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns\">Returns</h6>\n <p><code>any</code></p>\n\n \n\n\n \n\n \n</div>\n\n\n \n\n \n\n\n\n \n<section class=\"usage-notes\">\n <h2 id=\"usage-notes\">Usage notes<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/provideRoutes#usage-notes\"><i class=\"material-icons\">link</i></a></h2>\n <code-example>\n@<a href=\"api/core/NgModule\" class=\"code-anchor\">NgModule</a>({\n imports: [RouterModule.forChild(<a href=\"api/router/ROUTES\" class=\"code-anchor\">ROUTES</a>)],\n providers: [<a href=\"api/router/provideRoutes\" class=\"code-anchor\">provideRoutes</a>(EXTRA_ROUTES)]\n})\nclass MyNgModule {}\n</code-example>\n\n</section>\n\n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/core/ANALYZE_FOR_ENTRY_COMPONENTS\n - api/router\n - api/router/testing/RouterTestingModule\n-->\n<!-- links from this doc:\n - /api\n - api/core/NgModule\n - api/router\n - api/router/ROUTES\n - api/router/Routes\n - api/router/provideRoutes#provideroutes\n - api/router/provideRoutes#usage-notes\n - guide/glossary#provider\n - https://github.com/angular/angular/edit/master/packages/router/src/router_module.ts?message=docs(router)%3A%20describe%20your%20change...#L197-L219\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/router/src/router_module.ts#L197-L219\n-->"
|
|
} |