Watching JS variables for changes
After playing with angular for a while I got curios about how it can watch for variable changes and execute a function when these occur.
I did a little research and found out that all watches that you define in Angular are evaluated by an event loop that is entered when some event is triggered or apply is called.
That didn’t sound very interesting to me, but I did find some interesting alternatives.