@angular/platform-browser

入口点

主要

@angular/platform-browser

次要

@angular/platform-browser/animations
@angular/platform-browser/testing

导出列表

BrowserModule

The ng module for the browser.

供浏览器使用的 NgModule。

Meta

A service that can be used to get and add meta tags.

Title

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

BrowserTransferStateModule

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

TransferState

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

By

Predicates for use with DebugElement's query functions.

EventManager

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

HammerGestureConfig

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

DomSanitizer

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

DomSanitizer 可以把值净化为在不同 DOM 上下文中的安全内容,来帮你防范跨站脚本攻击(XSS)类的安全问题。

函数

disableDebugTools

Disables Angular tools.

enableDebugTools

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

makeStateKey

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

结构

SafeHtml

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

SafeResourceUrl

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

SafeScript

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

SafeStyle

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

SafeUrl

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.

类型

platformBrowser
MetaDefinition

Represents a meta element.

StateKey

A type-safe key to use with TransferState.

DOCUMENT

A DI Token representing the main rendering context. In a browser this is the DOM Document.

EVENT_MANAGER_PLUGINS

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

HAMMER_GESTURE_CONFIG

DI token for providing HammerJS support to Angular.

HAMMER_LOADER

Injection token used to provide a HammerLoaderto Angular.

HammerLoader

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