{ "id": "api/platform-browser", "title": "@angular/platform-browser", "contents": "\n\n
\n
\n
\n \n API\n
\n \n
\n \n
\n

@angular/platform-browserlink

\n \n \n \n \n
\n\n \n\n
\n

Supports execution of Angular apps on different supported browsers.

\n\n

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

\n

For more information, see Browser Support.

\n\n\n \n\n\n \n

Entry pointslink

\n \n \n \n
\n

Primarylink

\n \n \n \n \n \n \n \n
@angular/platform-browser\n \n

Supports execution of Angular apps on different supported browsers.

\n\n
\n
\n \n\n \n \n \n
\n

Secondarylink

\n \n \n \n \n \n \n \n \n \n \n \n \n
@angular/platform-browser/animations\n \n

Provides infrastructure for the rendering of animations in supported browsers.

\n\n
@angular/platform-browser/testing\n \n

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

\n\n
\n
\n \n\n \n\n

Primary entry point exportslink

\n \n \n \n \n \n
\n

NgModuleslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
BrowserModule\n \n

Exports required infrastructure for all Angular apps.\nIncluded by default in all Angular apps created with the CLI\nnew command.\nRe-exports CommonModule and ApplicationModule, making their\nexports and providers available to all apps.

\n\n
BrowserTransferStateModule\n \n

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

\n\n
HammerModule\n \n

Adds support for HammerJS.

\n\n
\n
\n \n\n \n \n \n
\n

Classeslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
By\n \n

Predicates for use with DebugElement's query functions.

\n\n
DomSanitizer\n \n

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

\n\n
EventManager\n \n

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

\n\n
HammerGestureConfig\n \n

An injectable HammerJS Manager\nfor gesture recognition. Configures specific event recognition.

\n\n
Meta\n \n

A service for managing HTML <meta> tags.

\n\n
Title\n \n

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

\n\n
TransferState\n \n

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

\n\n
\n
\n \n\n \n \n \n\n \n \n \n
\n

Functionslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
disableDebugTools\n \n

Disables Angular tools.

\n\n
enableDebugTools\n \n

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

\n\n
makeStateKey\n \n

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

\n\n
\n
\n \n\n \n \n \n
\n

Structureslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SafeHtml\n \n

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

\n\n
SafeResourceUrl\n \n

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

\n\n
SafeScript\n \n

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

\n\n
SafeStyle\n \n

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

\n\n
SafeUrl\n \n

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

\n\n
SafeValue\n \n

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

\n\n
\n
\n \n\n \n \n \n\n \n \n \n\n \n \n \n
\n

Typeslink

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
EVENT_MANAGER_PLUGINS\n \n

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

\n\n
HAMMER_GESTURE_CONFIG\n \n

DI token for providing HammerJS support to Angular.

\n\n
HAMMER_LOADER\n \n

Injection token used to provide a HammerLoader to Angular.

\n\n
HammerLoader\n \n

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

\n\n
MetaDefinition\n \n

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

\n\n
StateKey\n \n

A type-safe key to use with TransferState.

\n\n
platformBrowser\n \n

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

\n\n
\n
\n \n\n
\n
\n\n\n" }