Check out example codes for "javascript ng-change get previous value". It will help you in understanding the concepts better.

Code Example 1

//user.id passed to updateValue will be old value
<select ng-change="updateValue('{{user.id}}')" 
        ng-model="user.id" ng-options="user.id as user.name for user in users">
</select>

Learn ReactJs, React Native from akashmittal.com