O'Reilly logo

AngularJS Directives by Alex Vanston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

If you've made it this far, I trust you're convinced of the value of modularity and are interested in the ways Angular directives can make that easier for you. Scoping, particularly isolate scopes, is one of the most fundamental pieces of enabling that modularity. While the default scope value of false can certainly be convenient, and is often useful during early development and debugging, I strongly recommend not using it within your final production code unless you know it's absolutely necessary, and certainly not when you're developing a directive intended to be packaged and made available for use in other applications. The new scope provided by a value of true does provide a helpful compromise, though is still often more access than ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required