5 lines
60 KiB
JSON
Raw Permalink Normal View History

{
"id": "api/common/Location",
"title": "Location",
"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/common\", \"name\": \"@angular/common\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/common/Location\", \"name\": \"Location\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/src/location/location.ts?message=docs(common)%3A%20describe%20your%20change...#L22-L256\" 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/common/src/location/location.ts#L22-L256\" 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=\"location\">Location<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/Location#location\"><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>A service that applications can use to interact with a browser's URL.</p>\n\n <p><a href=\"api/common/Location#description\">See more...</a></p>\n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/common/Location\" class=\"code-anchor\">Location</a> {\n <a class=\"code-anchor\" href=\"api/common/Location#normalizeQueryParams\">static <span class=\"member-name\">normalizeQueryParams</span>: (params: string) => string</a>\n <a class=\"code-anchor\" href=\"api/common/Location#joinWithSlash\">static <span class=\"member-name\">joinWithSlash</span>: (start: string, end: string) => string</a>\n <a class=\"code-anchor\" href=\"api/common/Location#stripTrailingSlash\">static <span class=\"member-name\">stripTrailingSlash</span>: (url: string) => string</a>\n <a class=\"code-anchor\" href=\"api/common/Location#path\"><span class=\"member-name\">path</span>(includeHash: boolean = false): string</a>\n <a class=\"code-anchor\" href=\"api/common/Location#getState\"><span class=\"member-name\">getState</span>(): unknown</a>\n <a class=\"code-anchor\" href=\"api/common/Location#isCurrentPathEqualTo\"><span class=\"member-name\">isCurrentPathEqualTo</span>(path: string, query: string = ''): boolean</a>\n <a class=\"code-anchor\" href=\"api/common/Location#normalize\"><span class=\"member-name\">normalize</span>(url: string): string</a>\n <a class=\"code-anchor\" href=\"api/common/Location#prepareExternalUrl\"><span class=\"member-name\">prepareExternalUrl</span>(url: string): string</a>\n <a class=\"code-anchor\" href=\"api/common/Location#go\"><span class=\"member-name\">go</span>(path: string, query: string = '', state: any = null): void</a>\n <a class=\"code-anchor\" href=\"api/common/Location#replaceState\"><span class=\"member-name\">replaceState</span>(path: string, query: string = '', state: any = null): void</a>\n <a class=\"code-anchor\" href=\"api/common/Location#forward\"><span class=\"member-name\">forward</span>(): void</a>\n <a class=\"code-anchor\" href=\"api/common/Location#back\"><span class=\"member-name\">back</span>(): void</a>\n <a class=\"code-anchor\" href=\"api/
}