W3cubDocs

/Angular

BrowserModule

class stable

The ng module for the browser.

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

Static Methods

withServerTransition()

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.

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

Parameters

params

Type: { appId: string; }.

Returns

ModuleWithProviders

Constructor

constructor(parentModule: BrowserModule)

Parameters

parentModule

Type: BrowserModule.

Annotations

@NgModule({ providers: [ BROWSER_SANITIZATION_PROVIDERS, { provide: APP_ROOT, useValue: true }, { 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] })

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