I am trying to update the state of a variable by accessing it.
function changeValue(source, target, unit) {
$scope[target] = process($scope[source] + unit + ".").toKilograms();
});
This function is triggered every time something is inputted into a field (when tabbing out). However, the issue is that the value in the input field bound to $scope[targetVariable] does not update unless you click inside the input box.
Note: If I use the variable in a standard way, it works without any problems.