{ "id": "api/common/upgrade/LocationUpgradeConfig", "title": "LocationUpgradeConfig", "contents": "\n\n
\n
\n
\n \n API > @angular/common > @angular/common/upgrade\n
\n \n
\n \n
\n

LocationUpgradeConfiglink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Configuration options for LocationUpgrade.

\n\n \n
\n \n \n
\n\ninterface LocationUpgradeConfig {\n useHash?: boolean\n hashPrefix?: string\n urlCodec?: typeof UrlCodec\n serverBaseHref?: string\n appBaseHref?: string\n}\n\n\n \n \n\n\n \n \n\n
\n\n \n\n \n \n \n
\n

Propertieslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
PropertyDescription
\n \n useHash?: boolean\n \n \n

Configures whether the location upgrade module should use the HashLocationStrategy\nor the PathLocationStrategy

\n\n \n
\n \n hashPrefix?: string\n \n \n

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

\n\n \n
\n \n urlCodec?: typeof UrlCodec\n \n \n

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

\n\n \n
\n \n serverBaseHref?: string\n \n \n

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

\n\n \n
\n \n appBaseHref?: string\n \n \n

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

\n\n \n
\n
\n \n\n\n \n\n\n
\n
\n\n\n" }