我不得不承认,我不明白Angular universal starter
应用程序(https://github.com/angular/universal-starter)中服务TransferState
的目的和目标。
我猜它是为了在客户端和服务器之间共享数据,但我不确定在哪种情况下适用或应该应用。
有人理解并且能够通过一个简单的例子向我解释其目的吗?
提前致谢
最佳答案
GitHub Issue answering your question.
我有两个猜测。
- 来自 Universal Gotchas 的第三个要点- 提到的例子可以是 TransferModule
- Preboot.js 增强,因为它现在不支持 API 调用
关于Angular 通用启动器 : Wha't the purpose of the service TransferState?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45509477/