I was very happy to see the enthusiastic response to the "Make Your Own AngularJS" article I published earlier this month. It generated a lot of traffic, a lot of discussions, and even two translated versions: One in Chinese and one in Russian.
Several people suggested turning the series into an eBook, and I've decided to go for it. Here's how.
While the Angular documentation is getting very good, and there's an increasing number of third-party resources, there's really no better way to really learn a technology than to take it apart and see what makes it tick.
In this article series, I'm going to build an implementation of AngularJS from the ground up. As I take you through it step by step, you'll gain a deep understanding of exactly how Angular works.
In this first installment of the series we'll see how Angular scopes work and what things like $eval, $digest, and $apply actually do. The dirty-checking logic of Angular may seem somewhat magical, but it really isn't, as you'll see.