5 lines
221 KiB
JSON
5 lines
221 KiB
JSON
{
|
|
"id": "api/common/LocationStrategy",
|
|
"title": "LocationStrategy",
|
|
"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/LocationStrategy\", \"name\": \"LocationStrategy\" } }\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_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L13-L41\" 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_strategy.ts#L13-L41\" 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=\"locationstrategy\">LocationStrategy<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LocationStrategy#locationstrategy\"><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>Enables the <code><a href=\"api/common/Location\" class=\"code-anchor\">Location</a></code> service to read route state from the browser's URL.\nAngular provides two strategies:\n<code><a href=\"api/common/HashLocationStrategy\" class=\"code-anchor\">HashLocationStrategy</a></code> and <code><a href=\"api/common/PathLocationStrategy\" class=\"code-anchor\">PathLocationStrategy</a></code>.</p>\n\n <p><a href=\"api/common/LocationStrategy#description\">See more...</a></p>\n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nabstract class <a href=\"api/common/LocationStrategy\" class=\"code-anchor\">LocationStrategy</a> {\n <a class=\"code-anchor\" href=\"api/common/LocationStrategy#path\">abstract <span class=\"member-name\">path</span>(includeHash?: boolean): string</a>\n <a class=\"code-anchor\" href=\"api/common/LocationStrategy#prepareExternalUrl\">abstract <span class=\"member-name\">prepareExternalUrl</span>(internal: string): string</a>\n <a class=\"code-anchor\" href=\"api/common/LocationStrategy#pushState\">abstract <span class=\"member-name\">pushState</span>(state: any, title: string, url: string, queryParams: string): void</a>\n <a class=\"code-anchor\" href=\"api/common/LocationStrategy#replaceState\">abstract <span class=\"member-name\">replaceState</span>(state: any, title: string, url: string, queryParams: string): void</a>\n <a class=\"code-anchor\" href=\"api/common/LocationStrategy#forward\">abstract <span class=\"member-name\">forward</span>(): void</a>\n <a class=\"code-anchor\" href=\"api/common/LocationStrategy#back\">abstract <span class=\"member-name\">back</span>(): void</a>\n <a class=\"code-anchor\" href=\"api/common/LocationStrategy#onPopState\">abstract <span class=\"member-name\">onPopState</span>(fn: LocationChangeListener): void</a>\n <a class=\"code-anchor\" href=\"api/common/LocationStrategy#getBaseHref\">abstract <span class=\"member-name\">getBaseHref</span>(): string</a>\n}\n</code-example>\n\n \n \n <div class=\"descendants class\">\n <h2 id=\"subclasses\">Subclasses<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LocationStrategy#subclasses\"><i class=\"material-icons\">link</i></a></h2>\n \n\n<ul>\n \n <li>\n <code><a href=\"api/common/HashLocationStrategy\" class=\"code-anchor\">HashLocationStrategy</a></code>\n \n\n\n </li>\n \n <li>\n <code><a href=\"api/common/PathLocationStrategy\" class=\"code-anchor\">PathLocationStrategy</a></code>\n \n\n\n </li>\n \n <li>\n <code><a href=\"api/common/testing/MockLocationStrategy\" class=\"code-anchor\">MockLocationStrategy</a></code>\n \n\n\n </li>\n \n</ul>\n\n\n </div>\n \n\n</section>\n\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/common/LocationStrategy#description\"><i class=\"material-icons\">link</i></a></h2>\n <p>Applications should use the <code><a href=\"api/router/Router\" class=\"code-anchor\">Router</a></code> or <code><a href=\"api/common/Location\" class=\"code-anchor\">Location</a></code> services to\ninteract with application route state.</p>\n<p>For instance, <code><a href=\"api/common/HashLocationStrategy\" class=\"code-anchor\">HashLocationStrategy</a></code> produces URLs like\n<code class=\"no-auto-link\"><a href=\"http://example.com#/foo\">http://example.com#/foo</a></code>,\nand <code><a href=\"api/common/PathLocationStrategy\" class=\"code-anchor\">PathLocationStrategy</a></code> produces\n<code class=\"no-auto-link\"><a href=\"http://example.com/foo\">http://example.com/foo</a></code> as an equivalent URL.</p>\n<p>See these two classes for more.</p>\n\n \n</section>\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/common/LocationStrategy#methods\"><i class=\"material-icons\">link</i></a></h2>\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/LocationStrategy#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/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L33-L33\" 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_strategy.ts#L33-L33\" 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\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">path</span>(includeHash?: boolean): string</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters\">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>includeHash</code>\n </td>\n <td class=\"param-type\"><code>boolean</code></td>\n <td class=\"param-description\">\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>string</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=\"prepareExternalUrl\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"prepareexternalurl\">\n prepareExternalUrl()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LocationStrategy#prepareexternalurl\"><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/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L34-L34\" 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_strategy.ts#L34-L34\" 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\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">prepareExternalUrl</span>(internal: string): string</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>internal</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-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 \n\n \n </tbody>\n</table>\n\n \n <a id=\"pushState\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"pushstate\">\n pushState()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LocationStrategy#pushstate\"><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/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L35-L35\" 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_strategy.ts#L35-L35\" 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\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">pushState</span>(state: any, title: string, url: string, queryParams: string): void</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><a href=\"api/animations/state\" class=\"code-anchor\">state</a></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=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>title</code>\n </td>\n <td class=\"param-type\"><code>string</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>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 <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>queryParams</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-2\">Returns</h6>\n <p><code>void</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=\"replaceState\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"replacestate\">\n replaceState()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LocationStrategy#replacestate\"><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/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L36-L36\" 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_strategy.ts#L36-L36\" 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\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">replaceState</span>(state: any, title: string, url: string, queryParams: string): void</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><a href=\"api/animations/state\" class=\"code-anchor\">state</a></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=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>title</code>\n </td>\n <td class=\"param-type\"><code>string</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>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 <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>queryParams</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>void</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=\"forward\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"forward\">\n forward()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LocationStrategy#forward\"><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/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L37-L37\" 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_strategy.ts#L37-L37\" 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\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">forward</span>(): void</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-4\">Returns</h6>\n <p><code>void</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=\"back\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"back\">\n back()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LocationStrategy#back\"><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/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L38-L38\" 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_strategy.ts#L38-L38\" 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\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">back</span>(): void</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-5\">Returns</h6>\n <p><code>void</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=\"onPopState\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"onpopstate\">\n onPopState()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LocationStrategy#onpopstate\"><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/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L39-L39\" 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_strategy.ts#L39-L39\" 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\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">onPopState</span>(fn: LocationChangeListener): void</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>fn</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/common/LocationChangeListener\" class=\"code-anchor\">LocationChangeListener</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-6\">Returns</h6>\n <p><code>void</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=\"getBaseHref\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"getbasehref\">\n getBaseHref()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/LocationStrategy#getbasehref\"><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/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L40-L40\" 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_strategy.ts#L40-L40\" 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\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">getBaseHref</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-7\">Returns</h6>\n <p><code>string</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</section>\n\n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common\n - api/common/HashLocationStrategy\n - api/common/Location\n - api/common/PathLocationStrategy\n - api/common/PlatformLocation\n - api/common/testing\n - api/common/testing/MockLocationStrategy\n - api/common/upgrade/$locationShim\n - api/common/upgrade/$locationShimProvider\n - api/router/testing/RouterTestingModule\n - guide/hierarchical-dependency-injection\n - guide/router\n - guide/upgrade\n-->\n<!-- links from this doc:\n - /api\n - api/animations/state\n - api/common\n - api/common/HashLocationStrategy\n - api/common/Location\n - api/common/LocationChangeListener\n - api/common/LocationStrategy#back\n - api/common/LocationStrategy#description\n - api/common/LocationStrategy#forward\n - api/common/LocationStrategy#getBaseHref\n - api/common/LocationStrategy#getbasehref\n - api/common/LocationStrategy#locationstrategy\n - api/common/LocationStrategy#methods\n - api/common/LocationStrategy#onPopState\n - api/common/LocationStrategy#onpopstate\n - api/common/LocationStrategy#path\n - api/common/LocationStrategy#prepareExternalUrl\n - api/common/LocationStrategy#prepareexternalurl\n - api/common/LocationStrategy#pushState\n - api/common/LocationStrategy#pushstate\n - api/common/LocationStrategy#replaceState\n - api/common/LocationStrategy#replacestate\n - api/common/LocationStrategy#subclasses\n - api/common/PathLocationStrategy\n - api/common/testing/MockLocationStrategy\n - api/router/Router\n - http://example.com#/foo\n - http://example.com/foo\n - https://github.com/angular/angular/edit/master/packages/common/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L13-L41\n - https://github.com/angular/angular/edit/master/packages/common/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L33-L33\n - https://github.com/angular/angular/edit/master/packages/common/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L34-L34\n - https://github.com/angular/angular/edit/master/packages/common/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L35-L35\n - https://github.com/angular/angular/edit/master/packages/common/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L36-L36\n - https://github.com/angular/angular/edit/master/packages/common/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L37-L37\n - https://github.com/angular/angular/edit/master/packages/common/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L38-L38\n - https://github.com/angular/angular/edit/master/packages/common/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L39-L39\n - https://github.com/angular/angular/edit/master/packages/common/src/location/location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L40-L40\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/location_strategy.ts#L13-L41\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/location_strategy.ts#L33-L33\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/location_strategy.ts#L34-L34\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/location_strategy.ts#L35-L35\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/location_strategy.ts#L36-L36\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/location_strategy.ts#L37-L37\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/location_strategy.ts#L38-L38\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/location_strategy.ts#L39-L39\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/location_strategy.ts#L40-L40\n-->"
|
|
} |