AngularJS - $watch() Properties of Dynamic Objects
I've been working on an AngularJS project, and recently came across this interesting problem. We have an object sent to us from the server. This object contains zero or more properties which might be anything, and need to be editable by the user. Now, setting up the form was one thing, which perhaps I'll save for another post. But the interesting part is that, for reasons, I need to watch each property of the object to keep track of which ones have changed.