如何在 SAP Spartacus 自定义 UI 里使用标准 UI 的上下文数据 - let 关键字的用法
生活随笔
收集整理的這篇文章主要介紹了
如何在 SAP Spartacus 自定义 UI 里使用标准 UI 的上下文数据 - let 关键字的用法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
語法:let-<變量名>
自定義UI:
<ng-template cxOutletRef="header" cxOutletPos="before">Jerry Custom Header </ng-template><ng-templatecxOutletRef="SimpleResponsiveBannerComponent"cxOutletPos="before"let-jerrymodel ><p>before banner, jerry model: {{ jerrymodel | json }}</p> </ng-template> <cx-storefront>Loading...</cx-storefront>最終效果:
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的如何在 SAP Spartacus 自定义 UI 里使用标准 UI 的上下文数据 - let 关键字的用法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 抖音主页如何添加官网链接
- 下一篇: SAP Spartacus 中 Angu