I\'m trying to build a simple calculator in Angular in which I can override the total if I want. I have this part working but when I then go back to enter in a number in fields
Create a directive and put a watch on it.
app.directive("myApp", function(){ link:function(scope){ function:getTotal(){ ..do your maths here } scope.$watch('one', getTotals()); scope.$watch('two', getTotals()); }
})