添加如下打印语句:
<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>
输出:
网友评论