I have a table that I'm displaying using angular.js. So, my one spot in the table
holds two pieces of information. It has data and color. I found stuff for editing the data, but any suggestions on changing the color at the same time?
This is what my dataset looks like:
var datalist = [{scenario:"1", M1_date = '08/01/16', M1_color = 'green'},{scenario:"2", M1_date = '08/15/16', M1_color = 'red'}]
What my table looks like:
<td>{{ x.scenario }}</td>
<td ng-class="{'success':M1_color = 'onTarget' , 'info' : M1_color = 'closed', 'warning' : M1_color = 'targetrisk','info' : M1_color = 'missed'}">{{ x.M1_date }} </td>