SAP Spartacus 懒加载 Customized CMS Component 的问题
发布日期:2021-06-30 14:49:05 浏览次数:2 分类:技术文章

本文共 548 字,大约阅读时间需要 1 分钟。

SAP Spartacus 有两种 lazy load 方式:

  1. CMS-driven lazy loading of feature modules",as explained

以 feature module 的方式加载。

2.以 Component 为粒度进行加载: lazy loading of separate components (using component: () => import())

前者更优。

Using component: () => import() will lazy load only component code (no module, unless defined in the same file)

上述语法只能懒加载单个的 Component.

  • is it possible to lazy-load components which we have overriden, for example BannerComponent, SearchBoxComponent…?

答案:yes. 可以看到更多明细。

  • is it possible to apply lazy-load on custom CMS components ?
    答案:yes.

转载地址:https://jerry.blog.csdn.net/article/details/117532242 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SAP Spartacus Reference App Structure
下一篇:SAP Spartacus 使用 customized API

发表评论

最新留言

感谢大佬
[***.8.128.20]2024年04月12日 12时12分01秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章