I have a directive, inside a link function, i have a scope variable which I need to access inside 'ng-repeat'. But it is not picking up the value.
I have tried using $parent also went through couple of answers, but still it doesn't work.
This is what I tried:
HTML:
<div ng-controller="MyCtrl">
<div my-directive ng-repeat="item in items" item='item'></div>
</div>
Fiddle Link: