缓存组件-Angular 8服务器端渲染-Angular Universal

时间:2020-08-21 17:35:00

标签: angular caching lazy-loading server-side-rendering angular-universal

我正在尝试缓存application.component.html的某些组件。例如:

<app-header></app-header> <!- need to cache this component ->
<router-outlet></router-outlet>
<app-footer></app-footer> <!- need to cache this component ->

在这种情况下,我有两个组件始终加载相同的内容(一些动态内容,但内容很少),还有一个标签通过延迟加载来加载,其余的组件。

有什么想法可以缓存这些组件以进行服务器端渲染吗?

0 个答案:

没有答案
相关问题