On this page
@angular/platform-browser
package
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 |
Exports required infrastructure for all Angular apps. Included by default in all Angular apps created with the CLI |
BrowserTransferStateModule |
Deprecated: no longer needed, you can inject the NgModule to install on the client side while using the |
HammerModule |
Adds support for HammerJS. |
Classes
By |
Predicates for use with |
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 for managing HTML |
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
bootstrapApplication |
Bootstraps an instance of an Angular application and renders a standalone component as the application's root component. More information about standalone components can be found in this guide. |
createApplication |
Create an instance of an Angular application without bootstrapping any components. This is useful for the situation where one wants to decouple application environment creation (a platform and associated injectors) from rendering components on a screen. Components can be subsequently bootstrapped on the returned |
disableDebugTools |
Disables Angular tools. |
enableDebugTools |
Enabled Angular debug tools that are accessible via your browser's developer console. |
makeStateKey |
Create a |
provideProtractorTestingSupport |
Returns a set of providers required to setup Testability for an application bootstrapped using the |
Structures
ApplicationConfig |
Set of config options available during the application bootstrap operation. |
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
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 |
Function that loads HammerJS, returning a promise that is resolved once HammerJs is loaded. |
MetaDefinition |
Represents the attributes of an HTML |
StateKey |
A type-safe key to use with |
platformBrowser |
A factory function that returns a |
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v14.angular.io/api/platform-browser