填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

@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,它同时会使用 TransferState 将状态从服务器传输到客户端。

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

Classes

PlatformState

当前平台状态的表示形式。

Representation of the current platform state.

函数

Functions

renderModule

将模块渲染为字符串。

Renders a Module to string.

renderModuleFactory

NgModuleFactory渲染为字符串。

Renders a NgModuleFactoryto string.

结构

Structures

PlatformConfig

传递配置对象以初始化平台。

Config object passed to initialize the platform.

类型

Types

BEFORE_APP_SERIALIZED

在将当前平台状态渲染为字符串之前,调用 renderModuleFactoryrenderModule 时要执行的函数。

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

INITIAL_CONFIG

DI 令牌,用于设置平台的初始配置。

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

platformDynamicServer

支持运行时编译器的服务器平台。

The server platform that supports the runtime compiler.

platformServer