angular-cn/aio/dist/generated/docs/api/router/ROUTER_INITIALIZER.json

5 lines
3.0 KiB
JSON
Raw Permalink Normal View History

{
"id": "api/router/ROUTER_INITIALIZER",
"title": "ROUTER_INITIALIZER",
"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/ROUTER_INITIALIZER\", \"name\": \"ROUTER_INITIALIZER\" } }\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...#L586-L586\" 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#L586-L586\" 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=\"router_initializer\">ROUTER_INITIALIZER<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/ROUTER_INITIALIZER#router_initializer\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label const\">const</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>A <a href=\"guide/glossary/#di-token\">DI token</a> for the router initializer that\nis called after the app is bootstrapped.</p>\n\n \n </section>\n \n \n \n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">\n const <a href=\"api/router/ROUTER_INITIALIZER\" class=\"code-anchor\">ROUTER_INITIALIZER</a>: <a href=\"api/core/InjectionToken\" class=\"code-anchor\">InjectionToken</a>&#x3C;(compRef: <a href=\"api/core/ComponentRef\" class=\"code-anchor\">ComponentRef</a>&#x3C;any>) => void>;\n </code-example>\n\n \n\n \n \n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/router\n-->\n<!-- links from this doc:\n - /api\n - api/core/ComponentRef\n - api/core/InjectionToken\n - api/router\n - api/router/ROUTER_INITIALIZER#router_initializer\n - guide/glossary/#di-token\n - https://github.com/angular/angular/edit/master/packages/router/src/router_module.ts?message=docs(router)%3A%20describe%20your%20change...#L586-L586\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/router/src/router_module.ts#L586-L586\n-->"
}