0

I know of Object.observe() and Object.prototype.watch() but those are not very widely suported features (unfortunatly), meanwhile I know AngularJS does something to watch changes on objects...

I'm trying to create an script with this capability but much much lighter than Angular. First I remembered that I saw somewhere in this site that object properties could have (or had) set and get methods. That sounded strange to me maybe my memory is weak.

Am I in the right direction? Any enlightment on how to do this?

2

1 Answer 1

1

There are a few polyfils for observing variable value, I've been using this one

https://gist.github.com/eligrey/384583

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.