Although I am aware of Object.observe()
and Object.prototype.watch()
, these features are not widely supported. Fortunately, AngularJS does offer functionality to watch changes on objects.
I am currently working on creating a script with similar capabilities but in a much lighter version than Angular. I vaguely recall reading somewhere on this site that object properties could have set and get methods, but I'm not entirely sure if my memory serves me correctly.
Could someone provide guidance on whether I am headed in the right direction? Any tips on how to achieve this?