SAP Spartacus 懒加载 Customized CMS Component 的问题
生活随笔
收集整理的這篇文章主要介紹了
SAP Spartacus 懒加载 Customized CMS Component 的问题
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Lazy-loaded overriden or custom CMS Components
SAP Spartacus 有兩種 lazy load 方式:
以 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.
總結
以上是生活随笔為你收集整理的SAP Spartacus 懒加载 Customized CMS Component 的问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 区块链如何赋能车联网-Higgs Cha
- 下一篇: matlab练习程序(克莱姆法则解方程)