I have two columns of checkboxes using ng-repeat
, one called 'Calc.' and the other called 'Calc. Final'.
I have a button which I would like, when clicked, to match the selections of Calc.
in Calc. Final
.
Function:
function updateCalcFinal() {
vm.desktop.comparables.comp.forEach(e => {
e.calcFinal = e.calc;
console.log([e.calcFinal, e.calc]);
});
}
HTML:
<button class="btn btn-sm btn-primary pull-right mt5 mb5"
ng-disabled="deskCtrl.loading"
ng-click="deskCtrl.updateCalcFinal()">
<i class="glyphicon glyphicon-ok"></i>
Igualar Calc.
</button>
The above code is binding in the console.log
but is not being updated in the View. Any help would be much appreciated.