I have a table and I'd like one of the columns values to change based on it's header (which will be a select).
In my controller I have:
vm.pricing = [
{
id: 'price1',
heading: 'Floor'
},
{
id: 'price2',
heading: 'Retail'
}
];
My table is setup like:
<thead>
<tr>
<td>Vendor</td>
<td>
<select ng-model="vm.currentPricing"
ng-options="p.id as p.heading for p in vm.pricing">
</select>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>{{::vm.machine.vendorNbr}}</td>
<td>{{vm.machine.price1}}</td> <-- ****** What should go here?
</tr>
</tbody>