O'Reilly logo

Mastering AngularJS Directives by Josh Kurz

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

How to use isolate scopes

Isolate scopes are very important and offer many advantages to single page applications. The advantages provide special types of communication patterns that side-step JavaScript's prototypical inheritance patterns. Isolate scopes offer the following two types of communication techniques:

  • One-way data binding
  • Two-way data binding

Communication between directives using isolate scopes starts with the parent scope. The parent scope will hold the data model that a directive requires for successful communication with another directive that uses that same model.

Think of isolated scopes as the pipe from these scopes that go directly to the directive. There are different types of pipes available that can be used by each directive. ...

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