W3cubDocs

/Angular

BrowserTransferStateModule

class

npm Package @angular/platform-browser
Module import { BrowserTransferStateModule } from '@angular/platform-browser';
Source platform-browser/src/browser/transfer_state.ts

Overview

class BrowserTransferStateModule {
}

Description

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

Annotations

@NgModule({ providers: [{ provide: TransferState, useFactory: initTransferState, deps: [DOCUMENT, APP_ID] }] })

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