【发布时间】:2022-02-11 20:13:05
【问题描述】:
我需要操纵一个外部库组件中存在的按钮的样式和可见性。为了更好地理解下面的场景。
parent.component.html
<child-component></child-component>
child.component.html
<external-component></external-component>
所以按钮存在于我需要在父组件中操作的外部库组件中。
注意:该按钮没有任何模板引用变量,并且由于它存在于外部库中,因此我无法将其添加到其 html 中。
有什么办法可以做到吗? 在此先感谢:-)
【问题讨论】: