在SAP Spartacus app.module.ts里,随便定义一个简单的Component:index.html里,将dummy Component的selector维护进去:
运行时效果:locateHostElement
使用浏览器原生的document.querySelector方法,拿到app-root对应的dom:
在SAP Spartacus app.module.ts里,随便定义一个简单的Component:index.html里,将dummy Component的selector维护进去:
运行时效果:locateHostElement
使用浏览器原生的document.querySelector方法,拿到app-root对应的dom: