AngularJS from scratch, in CoffeeScript, at Mix-IT

Today at Mix-IT, I attended a nice workshop call AngularJS from scratch.

The idea is to let the participants develop, from scratch, AngularJS’s code watch/digest mechanism.

First, I think it’s a great idea to teach developers how to use a framework by letting them code a
simple version of the framework. I used to teach Spring IoC like that. Most of the time it works great.
It removes the fear people can face when using a “magical” tool like AngularJS.

Second, the workshop was well driven, with very easy steps. Good work guys.

Being myself, I thought it was a good opportunity not to code the thing in Javascript but rather
use CoffeeScript. Here’s the code: