I have a requirement to access existing scope (if it was already created by 
another directive) from another directive to be able to augment it's 
properties. 

In angular 1.0.x scope was shared across multiple directives on the same 
element and it was relatively straight forward, now since version 1.2.x if 
one of the directives creates an isolate/new scope, another directive with 
NO scope defined runs in a scope space of its direct parent. How can I 
still access an existing scope if it was created by an isolate/new scope 
directive.

If this feature is removed/changed, then it should be supplemented by an 
option on when you declare a directive.

Ex. 
In directive definition ...
{ 
   scope: 'existing', // Will share scope with an already created scope
   link: function(scope) {
       //scope will be the same if it was already created by another 
directive
   }
}

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to