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

LocationUpgradeConfig

Configuration options for LocationUpgrade.

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

属性

属性说明
useHash?: boolean

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

hashPrefix?: string

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

urlCodec?: typeof UrlCodec

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

serverBaseHref?: string

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

appBaseHref?: string

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