In my object details
, there are two fields: dueAmount
and adjustedAmount
. This is how my object looks:
{dueAmount:1000, adjustedAmount:1000}
If the value changes from 1000 to 1500, then it should be updated like this:
{dueAmount:1000, adjustedAmount:1500}
This means that dueAmount
should hold the previous value and adjustedAmount
should hold the new value.
Note: In the UI
, there is only one field, which is bound to one ng-model
.