I have a text area which is connected to one string, with the default text color set to white.
<textarea style="background-color: black;color:#fff;" [(ngModel)]="outputText"></textarea>
The connected string contains multiple variables.
return this.outputText = this.test1 + " test1Stat" + this.test2 + " test2Stat" + this.test3 + " test3Stat";
I am looking for a way to display "test1 test1Stat" in red if test1 is less than 1, while displaying everything else in green. Is there a method to achieve this?