5 lines
186 KiB
JSON
5 lines
186 KiB
JSON
{
|
|
"id": "api/common/PlatformLocation",
|
|
"title": "PlatformLocation",
|
|
"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/PlatformLocation\", \"name\": \"PlatformLocation\" } }\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/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L12-L67\" 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/platform_location.ts#L12-L67\" 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=\"platformlocation\">PlatformLocation<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/PlatformLocation#platformlocation\"><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>This class should not be used directly by an application developer. Instead, use\n<a href=\"api/common/Location\"><code>Location</code></a>.</p>\n\n <p><a href=\"api/common/PlatformLocation#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/PlatformLocation\" class=\"code-anchor\">PlatformLocation</a> {\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#href\">abstract <span class=\"member-name\">href</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#protocol\">abstract <span class=\"member-name\">protocol</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#hostname\">abstract <span class=\"member-name\">hostname</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#port\">abstract <span class=\"member-name\">port</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#pathname\">abstract <span class=\"member-name\">pathname</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#search\">abstract <span class=\"member-name\">search</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#hash\">abstract <span class=\"member-name\">hash</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#getBaseHrefFromDOM\">abstract <span class=\"member-name\">getBaseHrefFromDOM</span>(): string</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#getState\">abstract <span class=\"member-name\">getState</span>(): unknown</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#onPopState\">abstract <span class=\"member-name\">onPopState</span>(fn: LocationChangeListener): VoidFunction</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#onHashChange\">abstract <span class=\"member-name\">onHashChange</span>(fn: LocationChangeListener): VoidFunction</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#replaceState\">abstract <span class=\"member-name\">replaceState</span>(state: any, title: string, url: string): void</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#pushState\">abstract <span class=\"member-name\">pushState</span>(state: any, title: string, url: string): void</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#forward\">abstract <span class=\"member-name\">forward</span>(): void</a>\n <a class=\"code-anchor\" href=\"api/common/PlatformLocation#back\">abstract <span class=\"member-name\">back</span>(): void</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/PlatformLocation#subclasses\"><i class=\"material-icons\">link</i></a></h2>\n \n\n<ul>\n \n <li>\n <code><a href=\"api/common/testing/MockPlatformLocation\" class=\"code-anchor\">MockPlatformLocation</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/PlatformLocation#description\"><i class=\"material-icons\">link</i></a></h2>\n <p><code><a href=\"api/common/PlatformLocation\" class=\"code-anchor\">PlatformLocation</a></code> encapsulates all calls to DOM APIs, which allows the Router to be\nplatform-agnostic.\nThis means that we can have different implementation of <code><a href=\"api/common/PlatformLocation\" class=\"code-anchor\">PlatformLocation</a></code> for the different\nplatforms that Angular supports. For example, <code>@angular/platform-browser</code> provides an\nimplementation specific to the browser environment, while <code>@angular/platform-server</code> provides\none suitable for use with server-side rendering.</p>\n<p>The <code><a href=\"api/common/PlatformLocation\" class=\"code-anchor\">PlatformLocation</a></code> class is used directly by all implementations of <a href=\"api/common/LocationStrategy\"><code>LocationStrategy</code></a>\nwhen they need to interact with the DOM APIs like pushState, popState, etc.</p>\n<a href=\"api/common/LocationStrategy\"><code>LocationStrategy</code></a>\n<p> in turn is used by the <a href=\"api/common/Location\"><code>Location</code></a> service which is used directly\nby the <a href=\"api/router/Router\"><code>Router</code></a> in order to navigate between routes. Since all interactions between <a href=\"api/router/Router\"><code>Router</code></a> /\n<a href=\"api/common/Location\"><code>Location</code></a> / <a href=\"api/common/LocationStrategy\"><code>LocationStrategy</code></a> and DOM APIs flow through the <code><a href=\"api/common/PlatformLocation\" class=\"code-anchor\">PlatformLocation</a></code>\nclass, they are all platform-agnostic.</p>\n\n \n</section>\n\n \n\n\n\n\n\n\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/common/PlatformLocation#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=\"href\"></a>\n <code class=\"\">abstract <span class=\"member-name\">href</span>: string</code>\n </td>\n <td><span class=\"read-only-property\">Read-Only</span>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"protocol\"></a>\n <code class=\"\">abstract <span class=\"member-name\">protocol</span>: string</code>\n </td>\n <td><span class=\"read-only-property\">Read-Only</span>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"hostname\"></a>\n <code class=\"\">abstract <span class=\"member-name\">hostname</span>: string</code>\n </td>\n <td><span class=\"read-only-property\">Read-Only</span>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"port\"></a>\n <code class=\"\">abstract <span class=\"member-name\">port</span>: string</code>\n </td>\n <td><span class=\"read-only-property\">Read-Only</span>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"pathname\"></a>\n <code class=\"\">abstract <span class=\"member-name\">pathname</span>: string</code>\n </td>\n <td><span class=\"read-only-property\">Read-Only</span>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"search\"></a>\n <code class=\"\">abstract <span class=\"member-name\">search</span>: string</code>\n </td>\n <td><span class=\"read-only-property\">Read-Only</span>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"hash\"></a>\n <code class=\"\">abstract <span class=\"member-name\">hash</span>: string</code>\n </td>\n <td><span class=\"read-only-property\">Read-Only</span>\n \n \n \n </td>\n </tr>\n \n </tbody>\n </table>\n</section>\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/PlatformLocation#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"getBaseHrefFromDOM\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"getbasehreffromdom\">\n getBaseHrefFromDOM()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/PlatformLocation#getbasehreffromdom\"><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/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L41-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/platform_location.ts#L41-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 </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\">getBaseHrefFromDOM</span>(): string</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters\">Parameters</h6>\n <p>There are no parameters.</p>\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=\"getState\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"getstate\">\n getState()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/PlatformLocation#getstate\"><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/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L42-L42\" 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/platform_location.ts#L42-L42\" 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\">getState</span>(): unknown</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-1\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-1\">Returns</h6>\n <p><code>unknown</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/PlatformLocation#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/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L43-L46\" 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/platform_location.ts#L43-L46\" 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>Returns a function that, when executed, removes the <code>popstate</code> event handler.</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\">abstract <span class=\"member-name\">onPopState</span>(fn: LocationChangeListener): VoidFunction</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>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-2\">Returns</h6>\n <p><code>VoidFunction</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=\"onHashChange\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"onhashchange\">\n onHashChange()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/PlatformLocation#onhashchange\"><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/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L47-L50\" 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/platform_location.ts#L47-L50\" 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>Returns a function that, when executed, removes the <code>hashchange</code> event handler.</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\">abstract <span class=\"member-name\">onHashChange</span>(fn: LocationChangeListener): VoidFunction</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>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-3\">Returns</h6>\n <p><code>VoidFunction</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/PlatformLocation#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/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L59-L60\" 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/platform_location.ts#L59-L60\" 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): void</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-4\">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 </tbody>\n</table>\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=\"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/PlatformLocation#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/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L61-L62\" 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/platform_location.ts#L61-L62\" 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): void</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters-5\">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 </tbody>\n</table>\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=\"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/PlatformLocation#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/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L63-L64\" 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/platform_location.ts#L63-L64\" 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-6\">Parameters</h6>\n <p>There are no parameters.</p>\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=\"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/PlatformLocation#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/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L65-L66\" 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/platform_location.ts#L65-L66\" 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-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>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</section>\n\n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common\n - api/common/testing/MockPlatformLocation\n - api/common/upgrade/$locationShim\n - api/common/upgrade/$locationShimProvider\n-->\n<!-- links from this doc:\n - /api\n - api/animations/state\n - api/common\n - api/common/Location\n - api/common/LocationChangeListener\n - api/common/LocationStrategy\n - api/common/PlatformLocation#back\n - api/common/PlatformLocation#description\n - api/common/PlatformLocation#forward\n - api/common/PlatformLocation#getBaseHrefFromDOM\n - api/common/PlatformLocation#getState\n - api/common/PlatformLocation#getbasehreffromdom\n - api/common/PlatformLocation#getstate\n - api/common/PlatformLocation#hash\n - api/common/PlatformLocation#hostname\n - api/common/PlatformLocation#href\n - api/common/PlatformLocation#methods\n - api/common/PlatformLocation#onHashChange\n - api/common/PlatformLocation#onPopState\n - api/common/PlatformLocation#onhashchange\n - api/common/PlatformLocation#onpopstate\n - api/common/PlatformLocation#pathname\n - api/common/PlatformLocation#platformlocation\n - api/common/PlatformLocation#port\n - api/common/PlatformLocation#properties\n - api/common/PlatformLocation#protocol\n - api/common/PlatformLocation#pushState\n - api/common/PlatformLocation#pushstate\n - api/common/PlatformLocation#replaceState\n - api/common/PlatformLocation#replacestate\n - api/common/PlatformLocation#search\n - api/common/PlatformLocation#subclasses\n - api/common/testing/MockPlatformLocation\n - api/router/Router\n - https://github.com/angular/angular/edit/master/packages/common/src/location/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L12-L67\n - https://github.com/angular/angular/edit/master/packages/common/src/location/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L41-L41\n - https://github.com/angular/angular/edit/master/packages/common/src/location/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L42-L42\n - https://github.com/angular/angular/edit/master/packages/common/src/location/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L43-L46\n - https://github.com/angular/angular/edit/master/packages/common/src/location/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L47-L50\n - https://github.com/angular/angular/edit/master/packages/common/src/location/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L59-L60\n - https://github.com/angular/angular/edit/master/packages/common/src/location/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L61-L62\n - https://github.com/angular/angular/edit/master/packages/common/src/location/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L63-L64\n - https://github.com/angular/angular/edit/master/packages/common/src/location/platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L65-L66\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/platform_location.ts#L12-L67\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/platform_location.ts#L41-L41\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/platform_location.ts#L42-L42\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/platform_location.ts#L43-L46\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/platform_location.ts#L47-L50\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/platform_location.ts#L59-L60\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/platform_location.ts#L61-L62\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/platform_location.ts#L63-L64\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/src/location/platform_location.ts#L65-L66\n-->"
|
|
} |