作者:Henrycelia | 来源:互联网 | 2023-05-17 13:50
ImworkingonanAngular1Xapplicationwhichhasstoredalliconlabelsintoajsobjectlikethis
I'm working on an Angular 1X application which has stored all icon labels into a js object like this
我正在开发一个Angular 1X应用程序,它将所有图标标签存储到这样的js对象中
var labels={
........
iconlabel_o2:"O2",
iconLabel_co2:"CO2",
iconLabel_h20:"H2O",
........
}
and the iconLabel values are called into HTML
并且iconLabel值被调用为HTML
{{u.iconLabel}}
but the values are not getting rendered as subscripts. It just shows the whole string. like this...
但是这些值不会作为下标呈现。它只显示整个字符串。喜欢这个...
O2
CO2
H2O
How to fix this?
如何解决这个问题?
1 个解决方案