Basically I want this http://plnkr.co/edit/3yfXbo1c0llO40HZ8WNP?p=preview but watch doesn't fire when I change something..
I know that this would have worked
$scope.$watch('stuff', function (newVal, oldVal) {
console.log(oldVal, newVal);
}, true);
But since I want to do some summing up inside the watches and I don't want to unnecessarily loop thru or re-sum values that did not change..
//edit - note that the plnkr example is just an extraction from the actual app, where you can add and remove rows and much more, like modifying the total number(sum of somethings and somethingelses) from another input outside the ng-repeat..
$scope.stuff.somethingvariable, so you can't $watch that.stuffor rather have my summing functions inside some onchange/onkeyup event, is that right?somethingandsomethingelse, now whensomethingchanges, it would be unnecessarily to sumsomethingelseas wellstuffand keep away from premature optimization.