SAP

SAP Spartacus PagelayoutComponen

2021-01-07  本文已影响0人  _扫地僧_

添加如下打印语句:

<h1>PageLayout template: {{ layoutName$ | async }} </h1>
<h2>template name: {{ templateName$ | async }} </h2>
<h3>slot name: {{ slots$ | async }}</h3>
<h4>section name: {{ section$ | async }}</h4>
<ng-template
  [cxOutlet]="layoutName$ | async"
  [cxOutletContext]="{
    templateName$: templateName$,
    slots$: slots$,
    section$: section$
  }"
>
  <ng-content></ng-content>

  <cx-page-slot
    *ngFor="let slot of slots$ | async"
    [position]="slot"
    [isPageFold]="slot === (pageFoldSlot$ | async)"
  ></cx-page-slot>
</ng-template>

输出:



上一篇下一篇

猜你喜欢

热点阅读