Anil Anar
Member since Jan 27, 2016
- Profile: /members/13023-anil-anar.htm
- Comments: 2
Recent Blog Comments By Anil Anar
-
Don't Blindly Isolate All The Scopes In AngularJS Directives
Posted on Jan 27, 2016 at 9:58 AM
@Anil, Just an update after reading Ben's last comment. It's very unlikely for a developer to create something like ngRepeat. When one does, he will know what to do (at which point he should be master of scopes, private scope variables, transclusions, compiling, linking etc). So my point is still v... read more »
-
Don't Blindly Isolate All The Scopes In AngularJS Directives
Posted on Jan 27, 2016 at 9:54 AM
Almost on spot, but not quite. However, any reader can easily conclude when it is better to use isolate scopes from your examples: ngStyle, ngClick, ngClass etc. They don't add new stuff to DOM (templates) but rather they modify attributes/events of the element they are applied to. That is exactly ... read more »