$locationShimProvider
From Get docs
< @angular/common | upgradeAngular/docs/8/api/common/upgrade/$locationshimprovider
$locationShimProvider
class
The factory function used to create an instance of the $locationShim
in Angular, and provides an API-compatiable $locationProvider
for AngularJS.
class $locationShimProvider {
constructor(ngUpgrade: UpgradeModule, location: Location, platformLocation: PlatformLocation, urlCodec: UrlCodec, locationStrategy: LocationStrategy)
$get()
hashPrefix(prefix?: string)
html5Mode(mode?: any)
}
Constructor
constructor(ngUpgrade: UpgradeModule, location: Location, platformLocation: PlatformLocation, urlCodec: UrlCodec, locationStrategy: LocationStrategy)Parameters
|
Methods
$get() |
---|
Factory method that returns an instance of the $locationShim |
$get()ParametersThere are no parameters.
|
hashPrefix() | |||
---|---|---|---|
Stub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's config method in your Angular app.
| |||
hashPrefix(prefix?: string)Parameters
|
html5Mode() | |||
---|---|---|---|
Stub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's config method in your Angular app.
| |||
html5Mode(mode?: any)Parameters
|
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/common/upgrade/$locationShimProvider