@angular/platform-browser

package

Supports delivery 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 delivery of Angular apps on different supported browsers.

Secondary

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

Primary entry point exports

NgModules

BrowserModule

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 to install on the client side while using the TransferState to transfer state from server to client.

Classes

By

Predicates for use with DebugElement's query functions.

DomSanitizer

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

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.

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.

TransferState

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

Functions

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.

Structures

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.

Types

DOCUMENT

Deprecated: import from @angular/common instead.

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 HammerLoader to Angular.

HammerLoader

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

MetaDefinition

Represents a meta element.

StateKey

A type-safe key to use with TransferState.

platformBrowser

© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/platform-browser