Greetings all! I am using ng-repeat to create a list of items within a ul element.
Within the json data, there is a specific value that I want to highlight if it does not match a predefined string. Here's what I have so far:
ng-style="{'background-color':(json.string !== 'NO_MATCH' ? 'yellow')}
Below is the complete code for the ng-repeat section:
<li ng-repeat="json in json" ng-style="{'background-color': (json.string !== 'NO_MATCH' ? 'yellow')}>{{ json.title }} - {{ json.display }}</li>
I seem to be encountering an issue with this setup. Can anyone help me figure out where I might be making a mistake?