Configuration options for LocationUpgrade.
API
interface LocationUpgradeConfig {
useHash?: boolean | undefined;
hashPrefix?: string | undefined;
urlCodec?: typeof UrlCodec | undefined;
serverBaseHref?: string | undefined;
appBaseHref?: string | undefined;
}
useHash
boolean | undefinedConfigures whether the location upgrade module should use the HashLocationStrategy or the PathLocationStrategy
hashPrefix
string | undefinedConfigures the hash prefix used in the URL when using the HashLocationStrategy
urlCodec
typeof UrlCodec | undefinedConfigures the URL codec for encoding and decoding URLs. Default is the AngularJSCodec
serverBaseHref
string | undefinedConfigures the base href when used in server-side rendered applications
appBaseHref
string | undefinedConfigures the base href when used in client-side rendered applications