When text is generated from a for loop, such as "Hello: how are you?"
and "Hi: I am fine"
, the goal is to make the text preceding the colon bold. For instance, in the examples provided, "Hello"
and "Hi"
should appear in bold because they precede the colons.
In my HTML code snippet, there is a for loop on a node:
<div>
<a>
{{node.childrenCount == 0 ? node.code + ': ' + node.name : node.code + ': ' + node.name + ' ('+ node.childrenCount + ')' }}
</a>
</div>
How can I achieve this using CSS?