The factory function used to create an instance of the $locationShim in Angular, and provides an API-compatible $locationProvider for AngularJS.
API
class $locationShimProvider {
constructor(ngUpgrade: UpgradeModule, location: Location, platformLocation: PlatformLocation, urlCodec: UrlCodec, locationStrategy: LocationStrategy): $locationShimProvider;
$get(): $locationShim;
hashPrefix(prefix?: string | undefined): void;
html5Mode(mode?: any): void;
}
constructor
$locationShimProvider
@paramlocation
Location
@paramplatformLocation
PlatformLocation
@paramlocationStrategy
LocationStrategy
@returns
$locationShimProvider
$get
$locationShimFactory method that returns an instance of the $locationShim
@returns
$locationShim
hashPrefix
voidStub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's config method in your Angular app.
@paramprefix
string | undefined
@returns
void
html5Mode
voidStub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's config method in your Angular app.
@parammode
any
@returns
void