填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

@angular/platform-browser

Supports execution of Angular apps on different supported browsers.

The BrowserModule is included by default in any app created through the CLI, and it re-exports the CommonModule and ApplicationModule exports, making basic Angular functionality available to the app.

For more information, see Browser Support.

入口點

Entry points

主要

Primary

@angular/platform-browser

Supports execution of Angular apps on different supported browsers.

次要

Secondary

@angular/platform-browser/animations

Provides infrastructure for the rendering of animations in supported browsers.

@angular/platform-browser/testing

Supplies a testing module for the Angular platform-browser subsystem.

主要入口點的匯出

Primary entry point exports

NgModules

BrowserModule

匯出所有 Angular 應用都需要的基礎設施。預設包含在用 CLI 的 new 命令建立的所有 Angular 應用中。 它二次匯出了 CommonModuleApplicationModule,以便它們的匯出物和提供者能用於所有應用中。

Exports required infrastructure for all Angular apps. Included by default in all Angular apps created with the CLI new command. Re-exports CommonModule and ApplicationModule, making their exports and providers available to all apps.

BrowserTransferStateModule

要安裝在客戶端的 NgModule,它同時會使用 TransferState 將狀態從伺服器傳輸到客戶端。

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

HammerModule

添加了對 HammerJS 的支援。

Adds support for HammerJS.

類別

Classes

By

DebugElement的查詢功能一起使用的謂詞。

Predicates for use with DebugElement's query functions.

DomSanitizer

DomSanitizer 可以把值淨化為在不同 DOM 上下文中的安全內容,來幫你防範跨站指令碼攻擊(XSS)類別的安全問題。

DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing values to be safe to use in the different DOM contexts.

EventManager

透過瀏覽器外掛為 Angular 提供事件管理的可注入服務。

An injectable service that provides event management for Angular through a browser plug-in.

HammerGestureConfig

用於手勢識別的可注入 HammerJS 管理器。配置事件識別的選項。

An injectable HammerJS Manager for gesture recognition. Configures specific event recognition.

Meta

用於管理 HTML <meta> 標記的服務。

A service for managing HTML <meta> tags.

Title

可以用來獲取和設定當前 HTML 文件標題的服務。

A service that can be used to get and set the title of a current HTML document.

TransferState

從伺服器端的應用程式傳到客戶端的應用程式的鍵值儲存。

A key value store that is transferred from the application on the server side to the application on the client side.

函式

Functions

disableDebugTools

禁用 Angular 工具。

Disables Angular tools.

enableDebugTools

可透過瀏覽器的開發者控制檯訪問的已啟用 Angular 除錯工具。

Enabled Angular debug tools that are accessible via your browser's developer console.

makeStateKey

建立一個 StateKey<T>,可用於把 T 型別的值儲存在 TransferState 中。

Create a StateKey<T> that can be used to store value of type T with TransferState.

結構

Structures

SafeHtml

一個標記性介面,用於表示一個值可以安全地用在 HTML 上下文中。

Marker interface for a value that's safe to use as HTML.

SafeResourceUrl

一個標記性介面,用於表示一個值可以安全地用作 URL 以載入可執行程式碼。

Marker interface for a value that's safe to use as a URL to load executable code from.

SafeScript

一個標記性介面,用於表示一個值可以安全地用在 JavaScript 上下文中。

Marker interface for a value that's safe to use as JavaScript.

SafeStyle

一個標記性介面,用於表示一個值可以安全地用在樣式(CSS)上下文中。

Marker interface for a value that's safe to use as style (CSS).

SafeUrl

一個標記性介面,用於表示一個值可以安全地用作 URL 連結到一個文件。

Marker interface for a value that's safe to use as a URL linking to a document.

SafeValue

一個標記性介面,用於表示一個值可以安全的用在特定的上下文中。

Marker interface for a value that's safe to use in a particular context.

型別

Types

EVENT_MANAGER_PLUGINS

事件管理器外掛服務的注入令牌。

The injection token for the event-manager plug-in service.

HAMMER_GESTURE_CONFIG

DI 令牌,用於為 Angular 提供 HammerJS支援。

DI token for providing HammerJS support to Angular.

HAMMER_LOADER

用於向 Angular 提供 HammerLoader的注入令牌。

Injection token used to provide a HammerLoaderto Angular.

HammerLoader

載入 HammerJS 的函式,返回一個在 HammerJs 載入後解析的 Promise。

Function that loads HammerJS, returning a promise that is resolved once HammerJs is loaded.

MetaDefinition

表示 HTML <meta> 元素的屬性。該元素本身由一個內部 HTMLMetaElement 表示。

Represents the attributes of an HTML <meta> element. The element itself is represented by the internal HTMLMetaElement.

StateKey

TransferState 一起使用的型別安全的鍵名。

A type-safe key to use with TransferState.

platformBrowser

一個工廠函式,它返回與瀏覽器服務提供者關聯的 PlatformRef實例

A factory function that returns a PlatformRef instance associated with browser service providers.