美文网首页SAP
SAP Spartacus PagelayoutComponen

SAP Spartacus PagelayoutComponen

作者: _扫地僧_ | 来源:发表于2021-01-07 10:12 被阅读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>
    
    

    输出:



    相关文章

      网友评论

        本文标题:SAP Spartacus PagelayoutComponen

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