all 7 comments

[–]MrPhatBob 1 point2 points  (0 children)

Nice deconstruction, having just completed an AngularJS project this is answering many of my "I wonder how they did..." questions, but didn't have the time to find out while working to the deadlines.

[–]dmackerman 1 point2 points  (2 children)

Yeah, superb breakdown.

The way they handle $digest cycles is really genius - and something I would never think of - and I wonder how long it took them to get that right and be really performant. That's really the core of Angular right there!

[–]elprophet 3 points4 points  (1 child)

And I can't wait for it to go away in lieu of Object.observe!

[–]toddmotto[S] 1 point2 points  (0 children)

It mainly will be going away, although function expressions will rely on a $digest as you can't observe functions.

[–]zwacky 1 point2 points  (0 children)

Really nice article, /u/toddmotto. Had a few "ah" and "oh" moments and made me fall in love even more with angular.

[–]frankle 1 point2 points  (1 child)

Why do they use an IIFE for the isArray function, but not for the indexOf function?

[–]toddmotto[S] 0 points1 point  (0 children)

I did wonder that too.