W3cubDocs

/Angular 4 TypeScript

BrowserModule

Stable Class

Class Overview

class BrowserModule {
  static withServerTransition(params: {appId: string}) : ModuleWithProviders
  constructor(parentModule: BrowserModule)
  
  
}

Class Description

The ng module for the browser.

Annotations

@NgModule({
  providers: [
    BROWSER_SANITIZATION_PROVIDERS,
    {provide: ErrorHandler, useFactory: errorHandler, deps: []},
    {provide: EVENT_MANAGER_PLUGINS, useClass: DomEventsPlugin, multi: true},
    {provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true},
    {provide: EVENT_MANAGER_PLUGINS, useClass: HammerGesturesPlugin, multi: true},
    {provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig},
    DomRendererFactory2,
    {provide: RendererFactory2, useExisting: DomRendererFactory2},
    {provide: SharedStylesHost, useExisting: DomSharedStylesHost},
    DomSharedStylesHost,
    Testability,
    EventManager,
    ELEMENT_PROBE_PROVIDERS,
    Meta,
    Title,
  ],
  exports: [CommonModule, ApplicationModule]
})

Constructor

constructor(parentModule: BrowserModule)

Static Members

withServerTransition(params: {appId: string}) : ModuleWithProviders

Configures a browser-based application to transition from a server-rendered app, if one is present on the page. The specified parameters must include an application id, which must match between the client and server applications.

exported from platform-browser/index, defined in platform-browser/src/browser.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/platform-browser/index/BrowserModule-class.html