My current situation involves an array containing multiple objects.
$scope.userCompetences = [];
To monitor any changes in this array, I have implemented a deep watch:
$scope.$watch('userCompetences', function (newVal, oldValue) {
if(oldValue.length > 0)
{
var i = 0; // perform specific actions
}
}, true);
Now, I am looking for a way to determine the index of the object that has been modified within the array.