填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫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