5 lines
283 KiB
JSON

{
"id": "api/common/upgrade/$locationShim",
"title": "$locationShim",
"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/upgrade\", \"name\": \"@angular/common/upgrade\" } },\n { \"@type\": \"ListItem\", \"position\": 4, \"item\": { \"@id\": \"https://angular.io/api/common/upgrade/$locationShim\", \"name\": \"$locationShim\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a> > <a href=\"api/common/upgrade\">@angular/common/upgrade</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L24-L705\" 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/upgrade/src/location_shim.ts#L24-L705\" 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=\"locationshim\">$locationShim<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#locationshim\"><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>Location service that provides a drop-in replacement for the $location service\nprovided in AngularJS.</p>\n\n \n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass $locationShim {\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#constructor()\"><span class=\"member-name\">constructor</span>($injector: any, location: Location, platformLocation: PlatformLocation, urlCodec: UrlCodec, locationStrategy: LocationStrategy)</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#onChange\"><span class=\"member-name\">onChange</span>(fn: (url: string, state: unknown, oldUrl: string, oldState: unknown) => void, err: (e: Error) => void = (e: Error) => { })</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#%24%24parse\"><span class=\"member-name\">$$parse</span>(url: string)</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#%24%24parseLinkUrl\"><span class=\"member-name\">$$parseLinkUrl</span>(url: string, relHref?: string): boolean</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#absUrl\"><span class=\"member-name\">absUrl</span>(): string</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#url\"><span class=\"member-name\">url</span>(url?: string): string | this</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#protocol\"><span class=\"member-name\">protocol</span>(): string</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#host\"><span class=\"member-name\">host</span>(): string</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#port\"><span class=\"member-name\">port</span>(): number | null</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#path\"><span class=\"member-name\">path</span>(path?: string | number): string | this</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#search\"><span class=\"member-name\">search</span>(search?: string | number | { [key: string]: unknown; }, paramValue?: string | number | boolean | string[]): {...}</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#hash\"><span class=\"member-name\">hash</span>(hash?: string | number): string | this</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#replace\"><span class=\"member-name\">replace</span>(): this</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShim#state\"><span class=\"member-name\">state</span>(state?: unknown): unknown | this</a>\n}\n</code-example>\n\n \n \n\n</section>\n\n\n \n<section class=\"see-also\">\n <h2 id=\"see-also\">See also<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#see-also\"><i class=\"material-icons\">link</i></a></h2>\n <ul>\n \n <li><p><a href=\"guide/upgrade#using-the-unified-angular-location-service\">Using the Angular Unified Location Service</a></p>\n</li>\n </ul>\n</section>\n\n\n \n \n \n\n\n\n\n\n\n<h2 id=\"constructor\">Constructor<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#constructor\"><i class=\"material-icons\">link</i></a></h2>\n<a id=\"constructor()\"></a>\n<table class=\"is-full-width method-table constructor\">\n \n <tbody>\n \n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">constructor</span>($injector: any, location: <a href=\"api/common/Location\" class=\"code-anchor\">Location</a>, platformLocation: <a href=\"api/common/PlatformLocation\" class=\"code-anchor\">PlatformLocation</a>, urlCodec: <a href=\"api/common/upgrade/UrlCodec\" class=\"code-anchor\">UrlCodec</a>, locationStrategy: <a href=\"api/common/LocationStrategy\" class=\"code-anchor\">LocationStrategy</a>)</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table constructor-overload-parameters\">\n <tbody>\n \n <tr class=\"constructor-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>$injector</code>\n </td>\n <td class=\"param-type\"><code>any</code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n <tr class=\"constructor-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>location</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/common/Location\" class=\"code-anchor\">Location</a></code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n <tr class=\"constructor-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>platformLocation</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/common/PlatformLocation\" class=\"code-anchor\">PlatformLocation</a></code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n <tr class=\"constructor-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>urlCodec</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/common/upgrade/UrlCodec\" class=\"code-anchor\">UrlCodec</a></code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n <tr class=\"constructor-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>locationStrategy</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/common/LocationStrategy\" class=\"code-anchor\">LocationStrategy</a></code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n </tbody>\n</table>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n \n\n \n </tbody>\n</table>\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/common/upgrade/$locationShim#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"onChange\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"onchange\">\n onChange()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#onchange\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L336-L354\" 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/upgrade/src/location_shim.ts#L336-L354\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Registers listeners for URL changes. This API is used to catch updates performed by the\nAngularJS framework. These changes are a subset of the <code>$locationChangeStart</code> and\n<code>$locationChangeSuccess</code> events which fire when AngularJS updates its internally-referenced\nversion of the browser URL.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">onChange</span>(fn: (url: string, <a href=\"api/animations/state\" class=\"code-anchor\">state</a>: unknown, oldUrl: string, oldState: unknown) => void, err: (e: Error) => void = (e: Error) => { })</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-1\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>fn</code>\n </td>\n <td class=\"param-type\"><code>(url: string, <a href=\"api/animations/state\" class=\"code-anchor\">state</a>: unknown, oldUrl: string, oldState: unknown) => void</code></td>\n <td class=\"param-description\">\n <p>The callback function that is triggered for the listener when the URL changes.</p>\n\n </td>\n </tr>\n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>err</code>\n </td>\n <td class=\"param-type\"><code>(e: Error) => void</code></td>\n <td class=\"param-description\">\n <p>The callback function that is triggered when an error occurs.</p>\n<p> Optional. Default is <code>(e: Error) => { }</code>.</p>\n\n </td>\n </tr>\n </tbody>\n</table>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <p>It's possible for <code>$locationChange</code> events to happen, but for the browser URL\n(window.location) to remain unchanged. This <code>onChange</code> callback will fire only when AngularJS\nactually updates the browser URL (window.location).</p>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n <a id=\"$$parse\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"parse\">\n $$parse()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#parse\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L367-L391\" 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/upgrade/src/location_shim.ts#L367-L391\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Parses the provided URL, and sets the current URL to the parsed result.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">$$parse</span>(url: string)</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-2\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>url</code>\n </td>\n <td class=\"param-type\"><code>string</code></td>\n <td class=\"param-description\">\n <p>The URL string.</p>\n\n </td>\n </tr>\n </tbody>\n</table>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n \n\n \n </tbody>\n</table>\n\n \n <a id=\"$$parseLinkUrl\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"parselinkurl\">\n $$parseLinkUrl()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#parselinkurl\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L392-L417\" 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/upgrade/src/location_shim.ts#L392-L417\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Parses the provided URL and its relative URL.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">$$parseLinkUrl</span>(url: string, relHref?: string): boolean</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-3\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>url</code>\n </td>\n <td class=\"param-type\"><code>string</code></td>\n <td class=\"param-description\">\n <p>The full URL string.</p>\n\n </td>\n </tr>\n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>relHref</code>\n </td>\n <td class=\"param-type\"><code>string</code></td>\n <td class=\"param-description\">\n <p>A URL string relative to the full URL string.</p>\n<p> Optional. Default is <code>undefined</code>.</p>\n\n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns\">Returns</h6>\n <p><code>boolean</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n \n\n \n </tbody>\n</table>\n\n \n <a id=\"absUrl\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"absurl\">\n absUrl()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#absurl\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L443-L458\" 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/upgrade/src/location_shim.ts#L443-L458\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Retrieves the full URL representation with all segments encoded according to\nrules specified in\n<a href=\"https://tools.ietf.org/html/rfc3986\">RFC 3986</a>.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">absUrl</span>(): string</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-4\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-1\">Returns</h6>\n <p><code>string</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <code-example language=\"js\">\n// given URL http://example.com/#/some/path?foo=bar&#x26;baz=xoxo\nlet absUrl = $location.absUrl();\n// => \"http://example.com/#/some/path?foo=bar&#x26;baz=xoxo\"\n</code-example>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n <a id=\"url\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"url\">\n url()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#url\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L472-L489\" 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/upgrade/src/location_shim.ts#L472-L489\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n \n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n <div class=\"short-description\">\n <p>Retrieves the current URL, or sets a new URL. When setting a URL,\nchanges the path, search, and hash, and returns a reference to its own instance.</p>\n\n </div>\n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">url</span>(): string</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-5\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-2\">Returns</h6>\n <p><code>string</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">url</span>(url: string): this</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-6\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>url</code>\n </td>\n <td class=\"param-type\"><code>string</code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns-3\">Returns</h6>\n <p><code>this</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <code-example language=\"js\">\n// given URL http://example.com/#/some/path?foo=bar&#x26;baz=xoxo\nlet url = $location.url();\n// => \"/some/path?foo=bar&#x26;baz=xoxo\"\n</code-example>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n <a id=\"protocol\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"protocol\">\n protocol()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#protocol\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L490-L502\" 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/upgrade/src/location_shim.ts#L490-L502\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Retrieves the protocol of the current URL.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">protocol</span>(): string</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-7\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-4\">Returns</h6>\n <p><code>string</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <code-example language=\"js\">\n// given URL http://example.com/#/some/path?foo=bar&#x26;baz=xoxo\nlet protocol = $location.protocol();\n// => \"<a href=\"api/common/http\" class=\"code-anchor\">http</a>\"\n</code-example>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n <a id=\"host\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"host\">\n host()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#host\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L503-L525\" 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/upgrade/src/location_shim.ts#L503-L525\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Retrieves the protocol of the current URL.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">host</span>(): string</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-8\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-5\">Returns</h6>\n <p><code>string</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <p>In contrast to the non-AngularJS version <code>location.host</code> which returns <code>hostname:port</code>, this\nreturns the <code>hostname</code> portion only.</p>\n<code-example language=\"js\">\n// given URL http://example.com/#/some/path?foo=bar&#x26;baz=xoxo\nlet host = $location.host();\n// => \"example.com\"\n\n// given URL http://user:password@example.com:8080/#/some/path?foo=bar&#x26;baz=xoxo\nhost = $location.host();\n// => \"example.com\"\nhost = location.host;\n// => \"example.com:8080\"\n</code-example>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n <a id=\"port\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"port\">\n port()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#port\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L526-L538\" 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/upgrade/src/location_shim.ts#L526-L538\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Retrieves the port of the current URL.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">port</span>(): number | null</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-9\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-6\">Returns</h6>\n <p><code>number | null</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <code-example language=\"js\">\n// given URL http://example.com/#/some/path?foo=bar&#x26;baz=xoxo\nlet port = $location.port();\n// => 80\n</code-example>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n <a id=\"path\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"path\">\n path()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#path\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L555-L568\" 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/upgrade/src/location_shim.ts#L555-L568\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n \n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n <div class=\"short-description\">\n <p>Retrieves the path of the current URL, or changes the path and returns a reference to its own\ninstance.</p>\n\n </div>\n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">path</span>(): string</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-10\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-7\">Returns</h6>\n <p><code>string</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">path</span>(path: string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a>): this</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-11\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>path</code>\n </td>\n <td class=\"param-type\"><code>string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a></code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns-8\">Returns</h6>\n <p><code>this</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <p>Paths should always begin with forward slash (/). This method adds the forward slash\nif it is missing.</p>\n<code-example language=\"js\">\n// given URL http://example.com/#/some/path?foo=bar&#x26;baz=xoxo\nlet path = $location.path();\n// => \"/some/path\"\n</code-example>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n <a id=\"search\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"search\">\n search()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#search\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L613-L650\" 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/upgrade/src/location_shim.ts#L613-L650\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n \n <tr>\n <td>\n <details class=\"overloads\">\n <summary>\n <div class=\"icon-action-header\">\n <h4 class=\"no-anchor\" id=\"3-overloads\">3 overloads...</h4>\n <span class=\"actions\">\n <span class=\"show-all\">Show All</span>\n <span class=\"collapse-all\">Hide All</span>\n <i class=\"material-icons expand\">expand_more</i>\n </span>\n </div>\n </summary>\n <div class=\"detail-contents\">\n \n \n <h5 class=\"no-anchor\" id=\"overload-1\">Overload #1</h5>\n <div class=\"overload-info\">\n \n <div class=\"short-description\">\n <p>Retrieves a map of the search parameters of the current URL, or changes a search\npart and returns a reference to its own instance.</p>\n\n </div>\n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">search</span>(): {\n [key: string]: unknown;\n}</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-12\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-9\">Returns</h6>\n <p>`{</p>\n<p>}<code>: The parsed</code>search<code>object of the current URL, or the changed</code>search` object.</p>\n\n \n\n\n \n\n \n</div>\n <hr class=\"hr-margin\">\n \n <h5 class=\"no-anchor\" id=\"overload-2\">Overload #2</h5>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">search</span>(search: string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a> | { [key: string]: unknown; }): this</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-13\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>search</code>\n </td>\n <td class=\"param-type\"><code>string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a> | { [key: string]: unknown; }</code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns-10\">Returns</h6>\n <p><code>this</code></p>\n\n \n\n\n \n\n \n</div>\n <hr class=\"hr-margin\">\n \n <h5 class=\"no-anchor\" id=\"overload-3\">Overload #3</h5>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">search</span>(search: string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a> | { [key: string]: unknown; }, paramValue: string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a> | boolean | string[]): this</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-14\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>search</code>\n </td>\n <td class=\"param-type\"><code>string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a> | { [key: string]: unknown; }</code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>paramValue</code>\n </td>\n <td class=\"param-type\"><code>string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a> | boolean | string[]</code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns-11\">Returns</h6>\n <p><code>this</code></p>\n\n \n\n\n \n\n \n</div>\n \n \n </div>\n </details>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <code-example language=\"js\">\n// given URL http://example.com/#/some/path?foo=bar&#x26;baz=xoxo\nlet searchObject = $location.search();\n// => {foo: 'bar', baz: 'xoxo'}\n\n// set foo to 'yipee'\n$location.search('foo', 'yipee');\n// $location.search() => {foo: 'yipee', baz: 'xoxo'}\n</code-example>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n <a id=\"hash\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"hash\">\n hash()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#hash\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L664-L673\" 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/upgrade/src/location_shim.ts#L664-L673\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n \n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n <div class=\"short-description\">\n <p>Retrieves the current hash fragment, or changes the hash fragment and returns a reference to\nits own instance.</p>\n\n </div>\n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">hash</span>(): string</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-15\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-12\">Returns</h6>\n <p><code>string</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">hash</span>(hash: string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a>): this</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-16\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>hash</code>\n </td>\n <td class=\"param-type\"><code>string | <a href=\"api/common/DecimalPipe\" class=\"code-anchor\">number</a></code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns-13\">Returns</h6>\n <p><code>this</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <code-example language=\"js\">\n// given URL http://example.com/#/some/path?foo=bar&#x26;baz=xoxo#hashValue\nlet hash = $location.hash();\n// => \"hashValue\"\n</code-example>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n <a id=\"replace\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"replace\">\n replace()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#replace\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L674-L682\" 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/upgrade/src/location_shim.ts#L674-L682\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Changes to <code>$location</code> during the current <code>$digest</code> will replace the current\nhistory record, instead of adding a new one.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">replace</span>(): this</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-17\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-14\">Returns</h6>\n <p><code>this</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n \n\n \n </tbody>\n</table>\n\n \n <a id=\"state\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"state\">\n state()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShim#state\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L697-L704\" 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/upgrade/src/location_shim.ts#L697-L704\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n \n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n <div class=\"short-description\">\n <p>Retrieves the history state object when called without any parameter.</p>\n\n </div>\n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\"><a href=\"api/animations/state\" class=\"code-anchor\">state</a></span>(): unknown</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-18\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-15\">Returns</h6>\n <p><code>unknown</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n <tr>\n <td>\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/animations/state\" class=\"code-anchor\">state</a></span>(<a href=\"api/animations/state\" class=\"code-anchor\">state</a>: unknown): this</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-19\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code><a href=\"api/animations/state\" class=\"code-anchor\">state</a></code>\n </td>\n <td class=\"param-type\"><code>unknown</code></td>\n <td class=\"param-description\">\n \n \n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns-16\">Returns</h6>\n <p><code>this</code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n <tr>\n <td class=\"description\">\n <p>Change the history state object when called with one parameter and return <code>$location</code>.\nThe state object is later passed to <code>pushState</code> or <code>replaceState</code>.</p>\n<p>This method is supported only in HTML5 mode and only in browsers supporting\nthe HTML5 History API methods such as <code>pushState</code> and <code>replaceState</code>. If you need to support\nolder browsers (like Android &#x3C; 4.0), don't use this method.</p>\n\n </td>\n </tr>\n\n \n </tbody>\n</table>\n\n \n</section>\n\n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common/upgrade\n - api/common/upgrade/$locationShimProvider\n - guide/upgrade\n-->\n<!-- links from this doc:\n - /api\n - api/animations/state\n - api/common\n - api/common/DecimalPipe\n - api/common/Location\n - api/common/LocationStrategy\n - api/common/PlatformLocation\n - api/common/http\n - api/common/upgrade\n - api/common/upgrade/$locationShim#%24%24parse\n - api/common/upgrade/$locationShim#%24%24parseLinkUrl\n - api/common/upgrade/$locationShim#absUrl\n - api/common/upgrade/$locationShim#absurl\n - api/common/upgrade/$locationShim#constructor\n - api/common/upgrade/$locationShim#constructor()\n - api/common/upgrade/$locationShim#hash\n - api/common/upgrade/$locationShim#host\n - api/common/upgrade/$locationShim#locationshim\n - api/common/upgrade/$locationShim#methods\n - api/common/upgrade/$locationShim#onChange\n - api/common/upgrade/$locationShim#onchange\n - api/common/upgrade/$locationShim#parse\n - api/common/upgrade/$locationShim#parselinkurl\n - api/common/upgrade/$locationShim#path\n - api/common/upgrade/$locationShim#port\n - api/common/upgrade/$locationShim#protocol\n - api/common/upgrade/$locationShim#replace\n - api/common/upgrade/$locationShim#search\n - api/common/upgrade/$locationShim#see-also\n - api/common/upgrade/$locationShim#state\n - api/common/upgrade/$locationShim#url\n - api/common/upgrade/UrlCodec\n - guide/upgrade#using-the-unified-angular-location-service\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L24-L705\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L336-L354\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L367-L391\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L392-L417\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L443-L458\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L472-L489\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L490-L502\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L503-L525\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L526-L538\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L555-L568\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L613-L650\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L664-L673\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L674-L682\n - https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L697-L704\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L24-L705\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L336-L354\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L367-L391\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L392-L417\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L443-L458\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L472-L489\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L490-L502\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L503-L525\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L526-L538\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L555-L568\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L613-L650\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L664-L673\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L674-L682\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L697-L704\n - https://tools.ietf.org/html/rfc3986\n-->"
}