$locationShimProvider
Angular 中用于创建 $locationShim
实例的工厂函数,并为 AngularJS 提供与 API 兼容的 $locationProvider
。
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)
}
构造函数
参数
|
方法
返回 $locationShim 实例的工厂方法 Factory method that returns an instance of the $locationShim |
参数没有参数。 |
用于使 API 与 AngularJS 兼容的存根方法。此设置是通过 Angular 应用中 LocationUpgradeModule 的 Stub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's |
用于使 API 与 AngularJS 兼容的存根方法。此设置是通过 Angular 应用中 LocationUpgradeModule 的 Stub method used to keep API compatible with AngularJS. This setting is configured through the LocationUpgradeModule's |