关于sap:SAP-Spartacus-产品明细页面的-url-设计和数据源

明细页面 url:

http://localhost:4200/electro…

组件选择器:cx-generic-link

加上打印语句,发现是 local url 的状况:

routerUrl 来自 this.routeParts.path:

到上一层即 banner Component 里去查找:

阐明 generic link Component 的 url 是 banner Component 的 data$ 属性传入的:

数据来自 this.component.data$:

这个 Component 是主动注入的:

加上一行打印语句:

果然,跳转链接就藏在这里:

在这个 Component 里保护的数据:

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

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理