如何使用材料样式的Angular Web组件
我已经创建了一个具有Angular的Web组件,我想知道什么是使用角材料的最佳方法,以确保将包括Web组件的人不覆盖样式,反之亦然。
我正在评估Shadow dom,但是在这种情况下,如果我是正确的话,我需要在Web组件中的每个组件中导入物质主题。 该Web组件将包含在其他Angular应用程序中,其中包含材料和某些WordPress网站。
I have created a web component with angular and I would like to know what is the best way to use angular material making sure that the style is not overridden by those who will include the web component and vice versa.
I am evaluating shadow dom but in that case, I need to import material themes in every component inside my web component if I am right.
This web component will be included in other angular application with material and inside some WordPress site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论