- SAP 电商云 Spartacus UI 的 slot,posi
- SAP 电商云 Spartacus UI 的 Product C
- 网站上的 breadcrumb 使用场景浅析
- SAP UI5 sap.ui.vk 命名空间内的控件介绍
- HTML 按钮(button)的 disable 属性和 dis
- SAP 电商云 Spartacus UI 产品搜索结果的设计明细
- SAP 电商云 Spartacus UI Proxy Facad
- Angular @Injectable 注解的工作原理浅析
- 关于 Angular 部署以及 index.html 里 bas
- SAP 电商云 Spartacus UI 从 CMS 取回 sl
在 for 循环里进行的渲染:

最后渲染出来这些 Component 都位于 position 的 slot 内:

slot 和 position 一一对应:

slot 里面又循环 Component:

在 page-slot.component.html 加上一行调试信息:
<div>component id: {{ component.uid }}</div>

最后出来的结果:

再把 position 也打印出来:

最后的结果:

更多Jerry的原创文章,尽在:"汪子熙":

网友评论