I am curious to learn how I can dynamically change the color of a badge in Angular. My goal is to initially set the color of the badge to white, and then if the percVLRiskTotal
reaches a specific value, change the color to green as an example.
CSS:
<span class="badge badge-purple">{{percVLRiskTotal}} <span class="clr-sr-only"></span></span>