core.js里bootstrap启动的_bootstrapComponents里看到StorefrontComponent:
该Component定义在MainModule里:
在Storefront app的main.ts里,定义的bootstrapModule为AppModule:
AppModule定义的bootstrap Component为StorefrontComponent,这就是为什么在core.js里观察到的bootstrapComponent为StorefrontComponent的原因。
要获取更多Jerry的原创文章,请关注公众号"汪子熙":