I am deep watching an object in Angular,
$scope.$watch('bigObject', function(newVal, oldVal, scope) { //Watch the whole object
console.log("The key that changed was: " + key);
}, true); //Deep watch
How do I get the key that changed?
Example output: The key that changed was: bigObject.users.john.birthday