填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

LocationUpgradeConfig

LocationUpgrade 的配置选项。

Configuration options for LocationUpgrade.

      
      interface LocationUpgradeConfig {
  useHash?: boolean
  hashPrefix?: string
  urlCodec?: typeof UrlCodec
  serverBaseHref?: string
  appBaseHref?: string
}
    

属性

属性说明
useHash?: boolean

配置 location 升级模块应使用 HashLocationStrategy 还是 PathLocationStrategy

Configures whether the location upgrade module should use the HashLocationStrategy or the PathLocationStrategy

hashPrefix?: string

配置使用 HashLocationStrategy 时 URL 中要使用的哈希前缀

Configures the hash prefix used in the URL when using the HashLocationStrategy

urlCodec?: typeof UrlCodec

配置 URL 编解码器以对 URL 进行编码和解码。默认为 AngularJSCodec

Configures the URL codec for encoding and decoding URLs. Default is the AngularJSCodec

serverBaseHref?: string

配置在服务器端渲染的应用程序中使用时的 base href

Configures the base href when used in server-side rendered applications

appBaseHref?: string

配置在客户端渲染的应用程序中使用时的 base href

Configures the base href when used in client-side rendered applications