@angular/platform-server
Supports delivery of Angular apps on a server, for use with server-side rendering (SSR).
For more information, see Server-side Rendering: An intro to Angular SSR.
Entry points
Primary
@angular/platform-server |
Supports delivery of Angular apps on a server, for use with server-side rendering (SSR). |
Secondary
@angular/platform-server/init |
Initializes the server environment for rendering an Angular application. |
@angular/platform-server/testing |
Supplies a testing module for the Angular platform server subsystem. |
Primary entry point exports
NgModules
ServerModule |
The ng module for the server. |
ServerTransferStateModule |
Deprecated: no longer needed, you can inject the NgModule to install on the server side while using the |
Classes
PlatformState |
Representation of the current platform state. |
Functions
provideServerRendering |
Sets up providers necessary to enable server rendering functionality for the application. |
renderApplication |
Bootstraps an instance of an Angular application and renders it to a string. |
renderModule |
Bootstraps an application using provided NgModule and serializes the page content to string. |
Structures
PlatformConfig |
Config object passed to initialize the platform. |
Types
BEFORE_APP_SERIALIZED |
A function that will be executed when calling |
INITIAL_CONFIG |
The DI token for setting the initial config for the platform. |
platformDynamicServer |
Deprecated: add an The server platform that supports the runtime compiler. |
platformServer |