5 lines
10 KiB
JSON
Raw Normal View History

{
"id": "api/router/UrlTree",
"title": "UrlTree",
"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/UrlTree\", \"name\": \"UrlTree\" } }\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/url_tree.ts?message=docs(router)%3A%20describe%20your%20change...#L158-L214\" 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/url_tree.ts#L158-L214\" 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=\"urltree\">UrlTree<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/UrlTree#urltree\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label interface\">interface</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>Represents the parsed URL.</p>\n\n <p><a href=\"api/router/UrlTree#description\">See more...</a></p>\n </section>\n \n \n <section class=\"interface-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\ninterface <a href=\"api/router/UrlTree\" class=\"code-anchor\">UrlTree</a> {\n <a class=\"code-anchor\" href=\"api/router/UrlTree#root\"><span class=\"member-name\">root</span>: UrlSegmentGroup</a>\n <a class=\"code-anchor\" href=\"api/router/UrlTree#queryParams\"><span class=\"member-name\">queryParams</span>: Params</a>\n <a class=\"code-anchor\" href=\"api/router/UrlTree#fragment\"><span class=\"member-name\">fragment</span>: string | null</a>\n <a class=\"code-anchor\" href=\"api/router/UrlTree#queryParamMap\"><span class=\"member-name\">queryParamMap</span>: ParamMap</a>\n <a class=\"code-anchor\" href=\"api/router/UrlTree#toString\"><span class=\"member-name\">toString</span>(): string</a>\n}\n</code-example>\n\n \n \n\n\n \n \n\n</section>\n\n \n\n \n \n<section class=\"description\">\n <h2 id=\"description\">Description<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/UrlTree#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a\nserialized tree.\nUrlTree is a data structure that provides a lot of affordances in dealing with URLs</p>\n\n <p>Further information available in the <a href=\"api/router/UrlTree#usage-notes\">Usage Notes</a>...</p>\n</section>\n\n \n<section class=\"instance-properties\">\n <h2 id=\"properties\">Properties<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/router/UrlTree#properties\"><i class=\"material-icons\">link</i></a></h2>\n <table class=\"is-full-width list-table property-table\">\n <thead>\n <tr>\n <th>Property</th>\n <th>Description</th>\n </tr>\n </thead>\n <tbody>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"root\"></a>\n <code class=\"\"><span class=\"member-name\">root</span>: <a href=\"api/router/UrlSegmentGroup\" class=\"code-anchor\">UrlSegmen
}