I came across an interesting article on AngularJS internals authored by Nicolas Bevacqua. This article gives a very clear understanding of the entire idea of scoping!
AngularJS presents a remarkable number of interesting design choices in its code base. Two particularly interesting cases are the way in which scopes work and how directives behave.
The first thing anyone is taught when approaching AngularJS for the first time is that directives are meant to interact with the DOM, or whatever manipulates the DOM for you, such as jQuery (get over jQuery already!). What immediately becomes (and remains) confusing for most, though, is the interaction between scopes, directives and controllers. Read more...
No comments:
Post a Comment