We have some nested data which we are are displaying in a table.
One of the table cells is the contents of an array which is turned into a single string using the answer to this question Using comma as list separator with AngularJS
One request we've had is to colour the elements of the array based. The array would be something like:
[{name: "bob", color: red}, {name: "alice", color: green}]
However, I can't seem to find a way of applying the colour to the text as part of the ng-repeat.
I'm aware one option is to pre-process the array and replace the names with elements.