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

@angular/platform-server/initlink

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

Initializes the server environment for rendering an Angular application.

\n\n

For example, it provides shims (such as DOM globals) for the server environment.

\n

The initialization happens as a side effect of importing the entry point (i.e. there are no specific exports):

\n\nimport '@angular/platform-server/init';\n\n
\n

The import must come before any imports (direct or transitive) that rely on DOM built-ins being available.

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

Entry point exportslink

\n \n

No public exports.

\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
\n\n\n" }