• Overview
@angular/common/upgrade

$locationShimProvider

Class
stable

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
@paramngUpgradeUpgradeModule
@paramlocationLocation
@paramplatformLocationPlatformLocation
@paramurlCodecUrlCodec
@paramlocationStrategyLocationStrategy

$get

$locationShim

Factory method that returns an instance of the $locationShim

hashPrefix

void

Stub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's config method in your Angular app.

@paramprefixstring | undefined
@returnsvoid

html5Mode

void

Stub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's config method in your Angular app.

@parammodeany
@returnsvoid
Jump to details