I am currently facing an issue with my function called lessThan(a,b) that checks if "a" is less than "b" and returns a boolean value. I have added a glyphicon to a form to display a check mark when true and an X when false, but I can't get the colors to change accordingly. I want the check mark to be green for true and the X to be red for false. The code snippet I am working on is below:
<i ng-class="{'glyphicon glyphicon-ok': lessThan(a,b),'glyphicon glyphicon-remove': !lessThan(a,b) }"> </i>