美文网首页SAP
如何在SAP Spartacus自定义UI里使用标准UI的上下文

如何在SAP Spartacus自定义UI里使用标准UI的上下文

作者: 华山令狐冲 | 来源:发表于2020-11-23 10:08 被阅读0次

语法:let-<变量名>

自定义UI:

<ng-template cxOutletRef="header" cxOutletPos="before">
  Jerry Custom Header
</ng-template>

<ng-template
  cxOutletRef="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的上下文

    本文链接:https://www.haomeiwen.com/subject/tpzzsktx.html