天天看點

SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面

SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面
SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面

main節點裡的cx-page-layout節點是通過ActivatedRoute建立的:

SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面
SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面

section1裡第一個節點就是banner:

SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面
SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面

下圖的cx-page-layout, 實際是消費PageLayout,并給其名為section的input,傳入一個字元串值:header

SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面

傳入header給PageLayoutComponent:

SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面
SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面

在 layout.config.ts 裡定義的這些高亮的字元串,是 slotID:

SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面
SAP Spartacus storefront.component.html 怎麼關聯到其他的頁面

繼續閱讀