UI Deploy

Curated, Short, Web UI Dev we Love.

AngularJS Directive Scope Attribute Binding – Isolate Scope

In this blog post we will see how scope work with directives, how directive inherits scope from controller and what are the best ways of doing this.

What is Scope Binding in a Directive

Lets take a case of directive, where we need to print data from a controller scope.

The a very simple example would be as below

view source

Advertisement