@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 的 Exports required infrastructure for all Angular apps. Included by default in all Angular apps created with the CLI |
BrowserTransferStateModule | 要安装在客户端的 NgModule,它同时会使用 NgModule to install on the client side while using the |
HammerModule | 添加了对 HammerJS 的支持。 Adds support for HammerJS. |
类
Classes
By | 与 Predicates for use with |
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 A service for managing HTML |
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 | 创建一个 Create a |
结构
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 提供 Injection token used to provide a |
HammerLoader | 加载 HammerJS 的函数,返回一个在 HammerJs 加载后解析的 Promise。 Function that loads HammerJS, returning a promise that is resolved once HammerJs is loaded. |
MetaDefinition | 表示 HTML Represents the attributes of an HTML |
StateKey | 与 A type-safe key to use with |
platformBrowser | 一个工厂函数,它返回与浏览器服务提供者关联的 A factory function that returns a |