$locationShimProvider
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)
}
构造函数
参数
|
方法
Factory method that returns an instance of the $locationShim |
参数没有参数。 |
Stub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's |
Stub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's |