So, I\'m just getting started with angularjs and I\'m already confused. I want to change the colour of a list element that corresponds to a hex code colour that is in an array.
If you check an example here you will see that ng-style directive waits for css style, not just value, so in your case it'll be:
$scope.person.colourStyle={'background-color':$scope.persons.color}
and in html it'll be:
- < href="#/{{i.person_id}}">{{i.person_name}}
edit:
And You also need to set colour value to full hex for example: '#cc0000'.