@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 Universal.
入口点
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 | 服务器的 ng 模块。 The ng module for the server. |
ServerTransferStateModule | 要安装在服务端的 NgModule,它同时会使用 NgModule to install on the server side while using the |
类
Classes
PlatformState | 当前平台状态的表示形式。 Representation of the current platform state. |
函数
Functions
renderModule | 将模块渲染为字符串。 Renders a Module to string. |
renderModuleFactory | 将 Renders a |
结构
Structures
PlatformConfig | 传递配置对象以初始化平台。 Config object passed to initialize the platform. |
类型
Types
BEFORE_APP_SERIALIZED | 在将当前平台状态渲染为字符串之前,调用 A function that will be executed when calling |
INITIAL_CONFIG | DI 令牌,用于设置平台的初始配置。 The DI token for setting the initial config for the platform. |
platformDynamicServer | 支持运行时编译器的服务器平台。 The server platform that supports the runtime compiler. |
platformServer |