Is it possible to create a condition using Vue to add a class based on the text loaded on the doom changes?
I have a list with color names
<span>yellow</span> <span>red</span> <span>grey</span>
I want to set a condition, for example if the name text is yellow I want to add the class "color_yellow" etc.
Try a code snippet like the following: