Is it possible to use Vue conditions to dynamically add classes based on the text content in the DOM?
Let's say I have a list of color names:
<span>yellow</span>
<span>red</span>
<span>grey</span>
I would like to create a condition where if the text content is "yellow", then add the class 'color_yellow', and so on for other colors.