Nicolas Bevacqua Nico is an enthusiastic JavaScript hacker based in Buenos Aires, Argentina. When he’s not hacking away at freelance projects, or contributing to the open source community as @bevacqua, Nico spends time writing content for Pony Foo and devoting time to local communities such as NodeSchool and NodeBots as well as Beer.js; and he’s published a book, named JavaScript Application Design.
In the previous article in this series, I discussed scope events and the behavior of the digest cycle. This time around, I’ll talk about directives. This article will cover isolate scopes, transclusion, linking functions, compilers, directive controllers and more.
If the figure looks unreasonably mind-bending, then this article might be for you. This article is based on the AngularJS... Read More
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... Read More