BrowserTransferStateModule

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

class BrowserTransferStateModule { }

注解

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