{ "id": "api/platform-server/PlatformConfig", "title": "PlatformConfig", "contents": "\n\n
\n
\n
\n \n API > @angular/platform-server\n
\n \n
\n \n
\n

PlatformConfiglink

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

Config object passed to initialize the platform.

\n\n \n
\n \n \n
\n\ninterface PlatformConfig {\n document?: string\n url?: string\n useAbsoluteUrl?: boolean\n baseUrl?: 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
PropertyDescription
\n \n document?: string\n \n \n

The initial DOM to use to bootstrap the server application.

\n\n \n
\n \n url?: string\n \n \n

The URL for the current application state. This is used for initializing\nthe platform's location. protocol, hostname, and port will be\noverridden if baseUrl is set.

\n\n \n
\n \n useAbsoluteUrl?: boolean\n \n \n

Whether to append the absolute URL to any relative HTTP requests. If set to\ntrue, this logic executes prior to any HTTP interceptors that may run later\non in the request. baseUrl must be supplied if this flag is enabled.

\n\n \n
\n \n baseUrl?: string\n \n \n

The base URL for resolving absolute URL for HTTP requests. It must be set\nif useAbsoluteUrl is true, and must consist of protocol, hostname,\nand optional port. This option has no effect if useAbsoluteUrl is not\nenabled.

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