SAP Spartacus pageSlot一览

时间:2022-07-26
本文章向大家介绍SAP Spartacus pageSlot一览,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

在page-slot.component.html里增添一个h1标签:

最后渲染出来的效果:

在page-slot.component.html里增添如下测试代码:

<h4>Jerry: {{position}}</h4>
<div *ngIf="components[0]">
<h5>Component uid: {{ components[0].uid }}</h5>
<h6>Type code: {{ components[0].typeCode }}</h6>
</div>
<h4>end</h4>

SimpleResponsiveBannerComponent end

ProductCarouselComponent: