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

5 lines
137 KiB
JSON
Raw Permalink Normal View History

{
"id": "api/router/ChildrenOutletContexts",
"title": "ChildrenOutletContexts",
"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/ChildrenOutletContexts\", \"name\": \"ChildrenOutletContexts\" } }\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_outlet_context.ts?message=docs(router)%3A%20describe%20your%20change...#L27-L84\" 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_outlet_context.ts#L27-L84\" 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=\"childrenoutletcontexts\">ChildrenOutletContexts<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/ChildrenOutletContexts#childrenoutletcontexts\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label class\">class</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>Store contextual information about the children (= nested) <code><a href=\"api/router/RouterOutlet\" class=\"code-anchor\">RouterOutlet</a></code></p>\n\n \n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/router/ChildrenOutletContexts\" class=\"code-anchor\">ChildrenOutletContexts</a> {\n <a class=\"code-anchor\" href=\"api/router/ChildrenOutletContexts#onChildOutletCreated\"><span class=\"member-name\">onChildOutletCreated</span>(childName: string, outlet: RouterOutletContract): void</a>\n <a class=\"code-anchor\" href=\"api/router/ChildrenOutletContexts#onChildOutletDestroyed\"><span class=\"member-name\">onChildOutletDestroyed</span>(childName: string): void</a>\n <a class=\"code-anchor\" href=\"api/router/ChildrenOutletContexts#onOutletDeactivated\"><span class=\"member-name\">onOutletDeactivated</span>(): Map&#x3C;string, OutletContext></a>\n <a class=\"code-anchor\" href=\"api/router/ChildrenOutletContexts#onOutletReAttached\"><span class=\"member-name\">onOutletReAttached</span>(contexts: Map&#x3C;string, OutletContext>)</a>\n <a class=\"code-anchor\" href=\"api/router/ChildrenOutletContexts#getOrCreateContext\"><span class=\"member-name\">getOrCreateContext</span>(childName: string): OutletContext</a>\n <a class=\"code-anchor\" href=\"api/router/ChildrenOutletContexts#getContext\"><span class=\"member-name\">getContext</span>(childName: string): OutletContext | null</a>\n}\n</code-example>\n\n \n \n\n</section>\n\n\n \n\n \n \n \n\n\n\n\n\n\n\n\n\n\n\n\n<section class=\"instance-methods\">\n <h2 id=\"methods\">Methods<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/ChildrenOutletContexts#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"onChildOutletCreated\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"onchildoutletcreated\">\n onChildOutletCreated()\n \n <a title=\"Link to this heading\" class=\"
}