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

@angular/platform-serverlink

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

Supports delivery of Angular apps on a server, for use with server-side rendering (SSR).

\n\n

For more information, see Server-side Rendering: An intro to Angular Universal.

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

Entry pointslink

\n \n \n \n
\n

Primarylink

\n \n \n \n \n \n \n \n
@angular/platform-server\n \n

Supports delivery of Angular apps on a server, for use with server-side rendering (SSR).

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

Secondarylink

\n \n \n \n \n \n \n \n \n \n \n \n \n
@angular/platform-server/init\n \n

Initializes the server environment for rendering an Angular application.

\n\n
@angular/platform-server/testing\n \n

Supplies a testing module for the Angular platform server subsystem.

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

Primary entry point exportslink

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

NgModuleslink

\n \n \n \n \n \n \n \n \n \n \n \n \n
ServerModule\n \n

The ng module for the server.

\n\n
ServerTransferStateModule\n \n

NgModule to install on the server side while using the TransferState to transfer state from\nserver to client.

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

Classeslink

\n \n \n \n \n \n \n \n
PlatformState\n \n

Representation of the current platform state.

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

Functionslink

\n \n \n \n \n \n \n \n \n \n \n \n \n
renderModule\n \n

Renders a Module to string.

\n\n
renderModuleFactory\n \n

Renders a NgModuleFactory to string.

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

Structureslink

\n \n \n \n \n \n \n \n
PlatformConfig\n \n

Config object passed to initialize the platform.

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

Typeslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
BEFORE_APP_SERIALIZED\n \n

A function that will be executed when calling renderModuleFactory or renderModule just\nbefore current platform state is rendered to string.

\n\n
INITIAL_CONFIG\n \n

The DI token for setting the initial config for the platform.

\n\n
platformDynamicServer\n \n

The server platform that supports the runtime compiler.

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