I try to render some html text loaded in a json file.
the textstring holds an class="" css style
"example": word 1<br><span class=\"main-color\">word 2</span> word 3"
the vuejs part looks like this:
<p v-html="example"> </p>
the scoped css:
.main-color {
color: #ff00ff;
}
the html code looks as expected in debugger, but the text was not rendered! why?