angular-cn/aio/dist/generated/docs/api/common/testing/MockLocationStrategy.json

5 lines
248 KiB
JSON

{
"id": "api/common/testing/MockLocationStrategy",
"title": "MockLocationStrategy",
"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/MockLocationStrategy\", \"name\": \"MockLocationStrategy\" } }\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_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L11-L99\" 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_location_strategy.ts#L11-L99\" 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=\"mocklocationstrategy\">MockLocationStrategy<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/testing/MockLocationStrategy#mocklocationstrategy\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label class\">class</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>A mock implementation of <a href=\"api/common/LocationStrategy\"><code>LocationStrategy</code></a> that allows tests to fire simulated\nlocation events.</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/MockLocationStrategy\" class=\"code-anchor\">MockLocationStrategy</a> extends <a class=\"code-anchor\" href=\"api/common/LocationStrategy\">LocationStrategy</a> {\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#internalBaseHref\"><span class=\"member-name\">internalBaseHref</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#internalPath\"><span class=\"member-name\">internalPath</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#internalTitle\"><span class=\"member-name\">internalTitle</span>: string</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#urlChanges\"><span class=\"member-name\">urlChanges</span>: string[]</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#simulatePopState\"><span class=\"member-name\">simulatePopState</span>(url: string): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#path\"><span class=\"member-name\">path</span>(includeHash: boolean = false): string</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#prepareExternalUrl\"><span class=\"member-name\">prepareExternalUrl</span>(internal: string): string</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#pushState\"><span class=\"member-name\">pushState</span>(ctx: any, title: string, path: string, query: string): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#replaceState\"><span class=\"member-name\">replaceState</span>(ctx: any, title: string, path: string, query: string): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#onPopState\"><span class=\"member-name\">onPopState</span>(fn: (value: any) => void): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#getBaseHref\"><span class=\"member-name\">getBaseHref</span>(): string</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#back\"><span class=\"member-name\">back</span>(): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#forward\"><span class=\"member-name\">forward</span>(): void</a>\n <a class=\"code-anchor\" href=\"api/common/testing/MockLocationStrategy#getState\"><span class=\"member-name\">getState</span>(): unknown</a>\n\n // inherited from <a class=\"code-anchor\" href=\"api/common/LocationStrategy\">common/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\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/MockLocationStrategy#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=\"internalBaseHref\"></a>\n <code class=\"\"><span class=\"member-name\">internalBaseHref</span>: string</code>\n </td>\n <td>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"internalPath\"></a>\n <code class=\"\"><span class=\"member-name\">internalPath</span>: string</code>\n </td>\n <td>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"internalTitle\"></a>\n <code class=\"\"><span class=\"member-name\">internalTitle</span>: string</code>\n </td>\n <td>\n \n \n \n </td>\n </tr>\n \n <tr class=\"instance-property\">\n <td>\n <a id=\"urlChanges\"></a>\n <code class=\"\"><span class=\"member-name\">urlChanges</span>: string[]</code>\n </td>\n <td>\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/MockLocationStrategy#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"simulatePopState\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"simulatepopstate\">\n simulatePopState()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/testing/MockLocationStrategy#simulatepopstate\"><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_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L32-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/testing/src/mock_location_strategy.ts#L32-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\"><span class=\"member-name\">simulatePopState</span>(url: string): void</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>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\">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=\"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/testing/MockLocationStrategy#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/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L37-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/testing/src/mock_location_strategy.ts#L37-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\"><span class=\"member-name\">path</span>(includeHash: boolean = false): 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>includeHash</code>\n </td>\n <td class=\"param-type\"><code>boolean</code></td>\n <td class=\"param-description\">\n <p>Optional. Default is <code>false</code>.</p>\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=\"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/testing/MockLocationStrategy#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/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L41-L47\" 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_location_strategy.ts#L41-L47\" 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\">prepareExternalUrl</span>(internal: string): 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>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-2\">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/testing/MockLocationStrategy#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_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L48-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/testing/src/mock_location_strategy.ts#L48-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\"><span class=\"member-name\">pushState</span>(ctx: any, title: string, path: string, <a href=\"api/animations/query\" class=\"code-anchor\">query</a>: 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>ctx</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>path</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><a href=\"api/animations/query\" class=\"code-anchor\">query</a></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=\"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/MockLocationStrategy#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_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L61-L73\" 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_location_strategy.ts#L61-L73\" 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>(ctx: any, title: string, path: string, <a href=\"api/animations/query\" class=\"code-anchor\">query</a>: 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>ctx</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>path</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><a href=\"api/animations/query\" class=\"code-anchor\">query</a></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=\"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/MockLocationStrategy#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_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L74-L77\" 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_location_strategy.ts#L74-L77\" 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: (value: any) => void): 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>fn</code>\n </td>\n <td class=\"param-type\"><code>(value: any) => void</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=\"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/testing/MockLocationStrategy#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/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L78-L81\" 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_location_strategy.ts#L78-L81\" 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\">getBaseHref</span>(): string</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>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=\"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/MockLocationStrategy#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_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L82-L90\" 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_location_strategy.ts#L82-L90\" 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-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 <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/MockLocationStrategy#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_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L91-L94\" 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_location_strategy.ts#L91-L94\" 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-8\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-8\">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/MockLocationStrategy#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_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L95-L98\" 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_location_strategy.ts#L95-L98\" 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-9\">Parameters</h6>\n <p>There are no parameters.</p>\n\n \n <h6 class=\"no-anchor\" id=\"returns-9\">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/LocationStrategy\n - api/common/testing\n - api/router/testing/RouterTestingModule\n-->\n<!-- links from this doc:\n - /api\n - api/animations/query\n - api/common\n - api/common/LocationStrategy\n - api/common/LocationStrategy#back\n - api/common/LocationStrategy#forward\n - api/common/LocationStrategy#getBaseHref\n - api/common/LocationStrategy#onPopState\n - api/common/LocationStrategy#path\n - api/common/LocationStrategy#prepareExternalUrl\n - api/common/LocationStrategy#pushState\n - api/common/LocationStrategy#replaceState\n - api/common/testing\n - api/common/testing/MockLocationStrategy#back\n - api/common/testing/MockLocationStrategy#forward\n - api/common/testing/MockLocationStrategy#getBaseHref\n - api/common/testing/MockLocationStrategy#getState\n - api/common/testing/MockLocationStrategy#getbasehref\n - api/common/testing/MockLocationStrategy#getstate\n - api/common/testing/MockLocationStrategy#internalBaseHref\n - api/common/testing/MockLocationStrategy#internalPath\n - api/common/testing/MockLocationStrategy#internalTitle\n - api/common/testing/MockLocationStrategy#methods\n - api/common/testing/MockLocationStrategy#mocklocationstrategy\n - api/common/testing/MockLocationStrategy#onPopState\n - api/common/testing/MockLocationStrategy#onpopstate\n - api/common/testing/MockLocationStrategy#path\n - api/common/testing/MockLocationStrategy#prepareExternalUrl\n - api/common/testing/MockLocationStrategy#prepareexternalurl\n - api/common/testing/MockLocationStrategy#properties\n - api/common/testing/MockLocationStrategy#pushState\n - api/common/testing/MockLocationStrategy#pushstate\n - api/common/testing/MockLocationStrategy#replaceState\n - api/common/testing/MockLocationStrategy#replacestate\n - api/common/testing/MockLocationStrategy#simulatePopState\n - api/common/testing/MockLocationStrategy#simulatepopstate\n - api/common/testing/MockLocationStrategy#urlChanges\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L11-L99\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L32-L36\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L37-L40\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L41-L47\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L48-L60\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L61-L73\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L74-L77\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L78-L81\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L82-L90\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L91-L94\n - https://github.com/angular/angular/edit/master/packages/common/testing/src/mock_location_strategy.ts?message=docs(common)%3A%20describe%20your%20change...#L95-L98\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L11-L99\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L32-L36\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L37-L40\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L41-L47\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L48-L60\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L61-L73\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L74-L77\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L78-L81\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L82-L90\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L91-L94\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/testing/src/mock_location_strategy.ts#L95-L98\n-->"
}