如何在 SAP Spartacus 自定义 UI 里使用标准 UI 的上下文数据 - let 关键字的用法
生活随笔
收集整理的這篇文章主要介紹了
如何在 SAP Spartacus 自定义 UI 里使用标准 UI 的上下文数据 - let 关键字的用法
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
語(yǔ)法: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的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的如何在 SAP Spartacus 自定义 UI 里使用标准 UI 的上下文数据 - let 关键字的用法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 抖音主页如何添加官网链接
- 下一篇: SAP Spartacus 中 Angu