angular-cn/aio/dist/generated/docs/api/common/upgrade/$locationShimProvider.json

5 lines
112 KiB
JSON
Raw Normal View History

{
"id": "api/common/upgrade/$locationShimProvider",
"title": "$locationShimProvider",
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/common\", \"name\": \"@angular/common\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/common/upgrade\", \"name\": \"@angular/common/upgrade\" } },\n { \"@type\": \"ListItem\", \"position\": 4, \"item\": { \"@id\": \"https://angular.io/api/common/upgrade/$locationShimProvider\", \"name\": \"$locationShimProvider\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/common\">@angular/common</a> > <a href=\"api/common/upgrade\">@angular/common/upgrade</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/common/upgrade/src/location_shim.ts?message=docs(common)%3A%20describe%20your%20change...#L706-L743\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/common/upgrade/src/location_shim.ts#L706-L743\" 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=\"locationshimprovider\">$locationShimProvider<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShimProvider#locationshimprovider\"><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>The factory function used to create an instance of the <code><a href=\"api/common/upgrade/$locationShim\" class=\"code-anchor\">$locationShim</a></code> in Angular,\nand provides an API-compatiable <code>$locationProvider</code> for AngularJS.</p>\n\n \n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nclass $locationShimProvider {\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShimProvider#constructor()\"><span class=\"member-name\">constructor</span>(ngUpgrade: UpgradeModule, location: Location, platformLocation: PlatformLocation, urlCodec: UrlCodec, locationStrategy: LocationStrategy)</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShimProvider#%24get\"><span class=\"member-name\">$get</span>()</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShimProvider#hashPrefix\"><span class=\"member-name\">hashPrefix</span>(prefix?: string)</a>\n <a class=\"code-anchor\" href=\"api/common/upgrade/$locationShimProvider#html5Mode\"><span class=\"member-name\">html5Mode</span>(mode?: any)</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<h2 id=\"constructor\">Constructor<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/common/upgrade/$locationShimProvider#constructor\"><i class=\"material-icons\">link</i></a></h2>\n<a id=\"constructor()\"></a>\n<table class=\"is-full-width method-table constructor\">\n \n <tbody>\n \n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\"><span class=\"member-name\">constructor</span>(ngUpgrade: <a href=\"api/upgrade/static/UpgradeModule\" class=\"code-anchor\">UpgradeModule</a>, location: <a href=\"api/common/Location\" class=\"code-anc
}