core.js里bootstrap启动的_bootstrapComponents里看到StorefrontComponent:
该Component定义在MainModule里:
在Storefront app的main.ts里,定义的bootstrapModule为AppModule:
AppModule定义的bootstrap Component为StorefrontComponent,这就是为什么在core.js里观察到的bootstrapComponent为StorefrontComponent的原因。
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
汪子熙
认证博客专家
前端框架
Node.js
SAP
JerryWang,2007年从电子科技大学计算机专业硕士毕业后加入SAP成都研究院工作至今。Jerry是SAP社区导师,SAP中国技术大使。2020年5月下旬,Jerry做了脑部肿瘤的开颅切除手术,对编程和人生又有了新的感悟。