TransferStatelink
A key value store that is transferred from the application on the server side to the application on the client side.
说明
TransferState
will be available as an injectable token. To use it import ServerTransferStateModule
on the server and BrowserTransferStateModule
on the client.
The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only boolean, number, string, null and non-class objects will be serialized and deserialzied in a non-lossy manner.
方法
Get the value corresponding to a key. Return | ||||
参数
返回值
|
Set the value corresponding to a key. | ||||
参数
返回值
|
Remove a key from the store. | ||
参数
返回值
|
Test whether a key exists in the store. | ||
参数
|
Register a callback to provide the value for a key when | ||||
参数
返回值
|
Serialize the current state of the store to JSON. |
参数没有参数。 返回值
|