填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫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