[英]how to style one object inside a component tag angular
我想在这个组件标签内的 [text] 中添加一个样式
<i *ngIf="m.length<=0" >
<ul>
<angular_component
[text]= "main"
[id]="sub"
(deleteIconClicked)="sub_main"
></ngular_component>
</ul>
任何人都可以帮助我如何做到这一点我想添加这样的样式
<i *ngIf="m.length<=0" >
<ul>
<angular_component
<span class="bold">
[text]= "main" </span>
[id]="sub"
(deleteIconClicked)="sub_main"
></ngular_component>
</ul>
据我了解,您想为 angular_component 中的元素添加样式。 为此,您可以使用 ng-deep 伪类。 在 angular 中阅读有关组件样式的更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.