5 lines
185 KiB
JSON
5 lines
185 KiB
JSON
{
|
|
"id": "api/common/testing/MockPlatformLocation",
|
|
"title": "MockPlatformLocation",
|
|
"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/testing\", \"name\": \"@angular/common/testing\" } },\n { \"@type\": \"ListItem\", \"position\": 4, \"item\": { \"@id\": \"https://angular.io/api/common/testing/MockPlatformLocation\", \"name\": \"MockPlatformLocation\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a> > <a href=\"api/common/testing\">@angular/common/testing</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L98-L214\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L98-L214\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"mockplatformlocation\">MockPlatformLocation<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/testing/MockPlatformLocation#mockplatformlocation\"><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>Mock implementation of URL state.</p>\n\n \n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass <a href=\"api/common/testing/MockPlatformLocation\" class=\"code-anchor\">MockPlatformLocation</a> implements <a class=\"code-anchor\" href=\"api/common/PlatformLocation\">PlatformLocation</a> {\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#hostname\"><span class=\"member-name\">hostname</span></a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#protocol\"><span class=\"member-name\">protocol</span></a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#port\"><span class=\"member-name\">port</span></a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#pathname\"><span class=\"member-name\">pathname</span></a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#search\"><span class=\"member-name\">search</span></a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#hash\"><span class=\"member-name\">hash</span></a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#state\"><span class=\"member-name\">state</span></a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#href\"><span class=\"member-name\">href</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#url\"><span class=\"member-name\">url</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#getBaseHrefFromDOM\"><span class=\"member-name\">getBaseHrefFromDOM</span>(): string</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#onPopState\"><span class=\"member-name\">onPopState</span>(fn: LocationChangeListener): VoidFunction</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#onHashChange\"><span class=\"member-name\">onHashChange</span>(fn: LocationChangeListener): VoidFunction</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#replaceState\"><span class=\"member-name\">replaceState</span>(state: any, title: string, newUrl: string): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#pushState\"><span class=\"member-name\">pushState</span>(state: any, title: string, newUrl: string): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#forward\"><span class=\"member-name\">forward</span>(): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#back\"><span class=\"member-name\">back</span>(): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockPlatformLocation#getState\"><span class=\"member-name\">getState</span>(): unknown</a>\n}\n</code-example>\n\n \n \n\n</section>\n\n\n \n\n \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/testing/MockPlatformLocation#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=\"hostname\"></a>\n <code class=\"\"><span class=\"member-name\">hostname</span></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=\"\"><span class=\"member-name\">protocol</span></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=\"\"><span class=\"member-name\">port</span></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=\"\"><span class=\"member-name\">pathname</span></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=\"\"><span class=\"member-name\">search</span></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=\"\"><span class=\"member-name\">hash</span></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=\"state\"></a>\n <code class=\"\"><span class=\"member-name\"><a href=\"api/animations/state\" class=\"code-anchor\">state</a></span></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=\"href\"></a>\n <code class=\"\"><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=\"url\"></a>\n <code class=\"\"><span class=\"member-name\">url</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/testing/MockPlatformLocation#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/testing/MockPlatformLocation#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/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L150-L154\" 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/testing/src/mock_platform_location.ts#L150-L154\" 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\"><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=\"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/testing/MockPlatformLocation#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/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L155-L160\" 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/testing/src/mock_platform_location.ts#L155-L160\" 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\"><span class=\"member-name\">onPopState</span>(fn: <a href=\"api/common/LocationChangeListener\" class=\"code-anchor\">LocationChangeListener</a>): VoidFunction</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><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-1\">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/testing/MockPlatformLocation#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/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L161-L165\" 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/testing/src/mock_platform_location.ts#L161-L165\" 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\"><span class=\"member-name\">onHashChange</span>(fn: <a href=\"api/common/LocationChangeListener\" class=\"code-anchor\">LocationChangeListener</a>): 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=\"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/testing/MockPlatformLocation#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/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L182-L187\" 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/testing/src/mock_platform_location.ts#L182-L187\" 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\"><span class=\"member-name\">replaceState</span>(<a href=\"api/animations/state\" class=\"code-anchor\">state</a>: any, title: string, newUrl: 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>newUrl</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=\"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/testing/MockPlatformLocation#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/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L188-L192\" 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/testing/src/mock_platform_location.ts#L188-L192\" 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\"><span class=\"member-name\">pushState</span>(<a href=\"api/animations/state\" class=\"code-anchor\">state</a>: any, title: string, newUrl: 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>newUrl</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=\"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/testing/MockPlatformLocation#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/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L193-L196\" 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/testing/src/mock_platform_location.ts#L193-L196\" 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\"><span class=\"member-name\">forward</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=\"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/testing/MockPlatformLocation#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/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L197-L209\" 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/testing/src/mock_platform_location.ts#L197-L209\" 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\"><span class=\"member-name\">back</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=\"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/testing/MockPlatformLocation#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/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L210-L213\" 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/testing/src/mock_platform_location.ts#L210-L213\" 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\"><span class=\"member-name\">getState</span>(): unknown</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>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</section>\n\n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/common/PlatformLocation\n - api/common/testing\n-->\n<!-- links from this doc:\n - /api\n - api/animations/state\n - api/common\n - api/common/LocationChangeListener\n - api/common/PlatformLocation\n - api/common/testing\n - api/common/testing/MockPlatformLocation#back\n - api/common/testing/MockPlatformLocation#forward\n - api/common/testing/MockPlatformLocation#getBaseHrefFromDOM\n - api/common/testing/MockPlatformLocation#getState\n - api/common/testing/MockPlatformLocation#getbasehreffromdom\n - api/common/testing/MockPlatformLocation#getstate\n - api/common/testing/MockPlatformLocation#hash\n - api/common/testing/MockPlatformLocation#hostname\n - api/common/testing/MockPlatformLocation#href\n - api/common/testing/MockPlatformLocation#methods\n - api/common/testing/MockPlatformLocation#mockplatformlocation\n - api/common/testing/MockPlatformLocation#onHashChange\n - api/common/testing/MockPlatformLocation#onPopState\n - api/common/testing/MockPlatformLocation#onhashchange\n - api/common/testing/MockPlatformLocation#onpopstate\n - api/common/testing/MockPlatformLocation#pathname\n - api/common/testing/MockPlatformLocation#port\n - api/common/testing/MockPlatformLocation#properties\n - api/common/testing/MockPlatformLocation#protocol\n - api/common/testing/MockPlatformLocation#pushState\n - api/common/testing/MockPlatformLocation#pushstate\n - api/common/testing/MockPlatformLocation#replaceState\n - api/common/testing/MockPlatformLocation#replacestate\n - api/common/testing/MockPlatformLocation#search\n - api/common/testing/MockPlatformLocation#state\n - api/common/testing/MockPlatformLocation#url\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L150-L154\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L155-L160\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L161-L165\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L182-L187\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L188-L192\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L193-L196\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L197-L209\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L210-L213\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_platform_location.ts?message=docs(common)%3A%20describe%20your%20change...#L98-L214\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L150-L154\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L155-L160\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L161-L165\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L182-L187\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L188-L192\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L193-L196\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L197-L209\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L210-L213\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_platform_location.ts#L98-L214\n-->"
|
|
} |