I'm writing my first Angular app - wasn't sure how best to describe this so excuse me if its already been answered.
I'm using ng-repeat to display some JSON data:
<ul class="no-bullet" ng-repeat="person in persons">
<li>{{person.name}}
<div class="graphBar"></div>
</li>
</ul>
That div I have with class graphBar contains some CSS in which I'm setting
.graphBar {
background: linear-gradient(to right,
$Colour1 0%, $Colour1 33%,
$Colour2 33%, $Colour2 55%,
$Colour3 55%, $Colour3 80%,
$Colour4 80%, $Colour4 100%);
}
What i need advice on is how do I send data from {{person.options}} to some function so that I can process it in order to the percentages for the CSS and then to that div?
Any help would be appreciated.
Thanks

graphBarthen pass into that to do the smart processing?