I\'m not sure if this is actually possible, but I\'m essentially wanting a reverse of the \'&\' isolate scope in AngularJS. Here is a Plunkr to demonstrate.
Basicall
It is my understanding that adding ng-repeat
to an element creates a new scope, in order for the repeating content to be correctly bound. You may need an additional $parent
in that chain, such as $parent.$$nextSibling
, in order to step up to the level that is adjacent to the directive's isolate scope.