< ngx-tab tabtitle如何为字符串插值{{}}在Angular中赋予颜色
代码:
<ngx-tab tabTitle="Data[{{empListById.length}}]" tabHeading [active]="activeEmpIndex === 1" [bypassDOM]="true">
我需要仅给{{emplistById.length}}}
而不是整个data [{emplistById.length}}]
示例: 当前结果:数据[2] 预期结果:数据[2] // 2应为绿色
code:
<ngx-tab tabTitle="Data[{{empListById.length}}]" tabHeading [active]="activeEmpIndex === 1" [bypassDOM]="true">
i need to give color to only {{empListById.length}}
not for whole Data[{{empListById.length}}]
example :
current result : Data[2]
expected result : Data[2] // 2 should be in green color
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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