填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写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.